
/* =========================================
   GOLF CLUB LOGIN PAGE
   Main Stylesheet
========================================= */

:root {
    --forest: #0b1811;
    --forest-light: #17291e;
    --gold: #c9aa70;
    --gold-light: #e8d5a7;
    --text: #f3eee3;
    --muted: #a5b3a8;
}

/* =========================================
   GLOBAL RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "DM Sans", sans-serif;
    background: var(--forest);
    color: var(--text);
}

/* =========================================
   MAIN LOGIN PAGE
========================================= */

.login-page {
    position: relative;
    isolation: isolate;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 100vh;
    min-height: 100svh;

    padding: 110px 20px 85px;
    overflow: hidden;

    background: #07180f;
}

/* Golf course background photograph */

.login-page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;

    background:
        linear-gradient(
            90deg,
            rgba(3, 15, 9, 0.70),
            rgba(3, 19, 12, 0.24),
            rgba(3, 15, 9, 0.68)
        ),
        linear-gradient(
            0deg,
            rgba(3, 16, 10, 0.76),
            transparent 65%
        ),
        url("https://images.pexels.com/photos/5405380/pexels-photo-5405380.jpeg");

    background-size: cover;
    background-position: center 55%;
    background-repeat: no-repeat;

    transform: scale(1.04);
    animation: golfBackground 25s ease-in-out infinite alternate;
}

@keyframes golfBackground {
    from {
        transform: scale(1.04);
    }

    to {
        transform: scale(1.12);
    }
}

/* =========================================
   GOLF LANDSCAPE EFFECTS
========================================= */

.golf-landscape {
    position: absolute;
    inset: 0;
    z-index: -1;

    overflow: hidden;
    pointer-events: none;
}

.golf-landscape::before {
    content: "";
    position: absolute;
    inset: 0;

    background: radial-gradient(
        ellipse at 50% 45%,
        transparent 15%,
        rgba(3, 15, 9, 0.25) 100%
    );
}

/* Moonlight */

.moon {
    position: absolute;
    top: 8%;
    right: 14%;

    width: 180px;
    height: 180px;
    border-radius: 50%;

    background: radial-gradient(
        circle,
        #d6c39b 0%,
        #b7a77e 30%,
        transparent 72%
    );

    opacity: 0.15;
    filter: blur(2px);
}

/* Golf hills */

.hill {
    position: absolute;
    left: -10%;
    width: 120%;
    border-radius: 50% 50% 0 0;
}

.hill-one {
    bottom: -170px;
    height: 280px;
    background: rgba(20, 43, 29, 0.75);
    transform: rotate(-5deg);
}

.hill-two {
    bottom: -155px;
    height: 230px;
    background: rgba(27, 56, 37, 0.75);
    transform: rotate(7deg);
}

.hill-three {
    bottom: -140px;
    height: 170px;
    background: rgba(37, 71, 46, 0.75);
    transform: rotate(-3deg);
}

/* Golf flag */

.golf-flag {
    position: absolute;
    right: 17%;
    bottom: 12%;

    width: 1px;
    height: 90px;

    background: rgba(215, 197, 151, 0.65);
}

.golf-flag span {
    position: absolute;
    top: 0;
    left: 1px;

    width: 30px;
    height: 19px;

    background: var(--gold);

    clip-path: polygon(
        0 0,
        100% 0,
        75% 50%,
        100% 100%,
        0 100%
    );

    opacity: 0.8;
    transform-origin: left center;

    animation: flagWave 3s ease-in-out infinite alternate;
}

@keyframes flagWave {
    from {
        transform: skewY(0deg);
    }

    to {
        transform: skewY(-8deg);
    }
}

/* =========================================
   AMBIENT GREEN LIGHT
========================================= */

.ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 600px;
    height: 600px;

    transform: translate(-50%, -50%);

    background: radial-gradient(
        circle,
        rgba(61, 117, 70, 0.20),
        rgba(18, 53, 30, 0.07) 45%,
        transparent 70%
    );

    animation: ambientPulse 8s ease-in-out infinite alternate;
}

@keyframes ambientPulse {
    from {
        opacity: 0.45;
        transform: translate(-50%, -50%) scale(0.85);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

/* =========================================
   ANIMATED WAVES
========================================= */

.wave {
    position: absolute;
    left: -40%;

    width: 180%;
    height: 240px;

    border-radius: 45% 55% 0 0;

    background: linear-gradient(
        135deg,
        rgba(35, 83, 48, 0.48),
        rgba(15, 49, 29, 0.78),
        rgba(84, 113, 65, 0.18)
    );

    filter: blur(2px);
    will-change: transform;
}

.wave.wave-top {
    top: -170px;
    border-radius: 0 0 48% 52%;
}

.wave.wave-bottom {
    bottom: -175px;
}

.wave-one {
    height: 230px;
    opacity: 0.48;
    animation: waveRight 17s ease-in-out infinite alternate;
}

.wave-two {
    height: 190px;
    opacity: 0.35;

    background: linear-gradient(
        120deg,
        rgba(172, 142, 84, 0.12),
        rgba(28, 77, 42, 0.6),
        rgba(10, 34, 20, 0.5)
    );

    animation: waveLeft 22s ease-in-out infinite alternate;
}

.wave-three {
    height: 240px;
    opacity: 0.55;
    animation: waveLeft 19s ease-in-out infinite alternate;
}

.wave-four {
    height: 185px;
    opacity: 0.45;

    background: linear-gradient(
        120deg,
        rgba(29, 82, 43, 0.8),
        rgba(177, 146, 88, 0.15),
        rgba(13, 44, 26, 0.7)
    );

    animation: waveRight 24s ease-in-out infinite alternate;
}

@keyframes waveRight {
    from {
        transform: translateX(-5%) rotate(-4deg);
    }

    to {
        transform: translateX(7%) rotate(4deg);
    }
}

@keyframes waveLeft {
    from {
        transform: translateX(6%) rotate(4deg);
    }

    to {
        transform: translateX(-6%) rotate(-3deg);
    }
}

/* =========================================
   SVG TOP AND BOTTOM WAVE BORDERS
========================================= */

.wave-border {
    position: absolute;
    left: 0;

    width: 100%;
    height: 145px;

    z-index: 5;
    pointer-events: none;
}

.wave-border.wave-top {
    top: 0;
}

.wave-border.wave-bottom {
    bottom: 0;
    transform: rotate(180deg);
}

/* =========================================
   FLOATING GOLF BALLS
========================================= */

.animated-ball {
    position: absolute;

    width: 35px;
    height: 35px;
    border-radius: 50%;

    background: radial-gradient(
        circle at 35% 28%,
        #ffffff 0%,
        #e9eadf 42%,
        #aab2a5 100%
    );

    box-shadow:
        inset -5px -6px 10px rgba(0, 0, 0, 0.18),
        0 5px 24px rgba(0, 0, 0, 0.24),
        0 0 20px rgba(217, 201, 157, 0.15);

    will-change: transform;
}

.animated-ball::after {
    content: "";
    position: absolute;
    inset: 4px;

    border-radius: 50%;

    background-image: radial-gradient(
        circle,
        rgba(115, 125, 113, 0.35) 1px,
        transparent 1.7px
    );

    background-size: 6px 6px;
    opacity: 0.55;
}

.ball-one {
    top: 20%;
    left: 9%;

    width: 30px;
    height: 30px;

    animation: golfFloatOne 12s ease-in-out infinite;
}

.ball-two {
    top: 68%;
    right: 10%;

    width: 43px;
    height: 43px;

    animation: golfFloatTwo 16s ease-in-out infinite;
}

.ball-three {
    top: 37%;
    right: 8%;

    width: 19px;
    height: 19px;

    animation: golfFloatThree 10s ease-in-out infinite;
}

.ball-four {
    bottom: 13%;
    left: 15%;

    width: 25px;
    height: 25px;

    animation: golfFloatTwo 14s ease-in-out infinite reverse;
}

@keyframes golfFloatOne {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(85px, 65px) rotate(180deg);
    }
}

@keyframes golfFloatTwo {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-75px, -55px) rotate(220deg);
    }
}

@keyframes golfFloatThree {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translate(-35px, 80px) rotate(180deg);
    }
}

/* =========================================
   GOLD PARTICLES
========================================= */

.gold-particle {
    position: absolute;

    width: 4px;
    height: 4px;
    border-radius: 50%;

    background: #d6b878;

    box-shadow:
        0 0 8px #d6b878,
        0 0 18px rgba(214, 184, 120, 0.5);

    animation: particleGlow 4s ease-in-out infinite alternate;
}

.particle-one {
    top: 27%;
    left: 22%;
}

.particle-two {
    top: 72%;
    right: 25%;
    animation-delay: 1.5s;
}

.particle-three {
    top: 45%;
    left: 80%;
    animation-delay: 2.5s;
}

@keyframes particleGlow {
    from {
        opacity: 0.2;
        transform: scale(0.7);
    }

    to {
        opacity: 1;
        transform: scale(1.7);
    }
}

/* =========================================
   TOP NAVIGATION
========================================= */

.top-bar {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    padding: 27px 6%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;

    color: var(--gold-light);
    text-decoration: none;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}

.brand-icon {
    font-size: 22px;
    color: var(--gold);
}

.secure-label {
    display: flex;
    align-items: center;
    gap: 9px;

    color: var(--muted);
    font-size: 9px;
    letter-spacing: 2px;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #8bbd8d;
    box-shadow: 0 0 12px #8bbd8d;
}

/* =========================================
   LOGIN CARD
========================================= */

.login-container {
    position: relative;
    z-index: 3;

    width: 100%;
    max-width: 440px;
    padding: 42px 38px;

    text-align: center;

    background: rgba(11, 29, 19, 0.88);

    border: 1px solid rgba(201, 170, 112, 0.28);
    border-radius: 5px;

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.48),
        0 0 45px rgba(201, 170, 112, 0.05);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.emblem {
    display: grid;
    place-items: center;

    width: 62px;
    height: 62px;

    margin: 0 auto 23px;

    border: 1px solid var(--gold);
    border-radius: 50%;

    color: var(--gold-light);
    font-family: "Playfair Display", serif;
    font-size: 30px;
}

.eyebrow {
    margin-bottom: 18px;

    color: var(--gold);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 3px;
}

.login-container h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(36px, 7vw, 49px);
    font-weight: 500;
    line-height: 1.14;
    letter-spacing: -1px;
}

.login-container h1 span {
    color: var(--gold-light);
    font-style: italic;
}

.gold-line {
    width: 45px;
    height: 1px;

    margin: 24px auto;

    background: var(--gold);
}

.intro {
    margin-bottom: 30px;

    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

/* =========================================
   PASSWORD INPUT
========================================= */

#loginForm {
    text-align: left;
}

#loginForm label {
    display: block;
    margin-bottom: 10px;

    color: var(--gold-light);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}

.password-wrapper {
    display: flex;
    align-items: center;

    height: 53px;

    border: 1px solid rgba(201, 170, 112, 0.35);
    border-radius: 3px;

    background: rgba(5, 17, 10, 0.65);

    transition: border-color 0.25s, box-shadow 0.25s;
}

.password-wrapper:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 170, 112, 0.10);
}

.password-wrapper input {
    flex: 1;

    width: 100%;
    min-width: 0;
    height: 100%;

    padding: 0 15px;

    border: none;
    outline: none;

    background: transparent;
    color: white;

    font: inherit;
    font-size: 13px;
}

.password-wrapper input::placeholder {
    color: #77867b;
}

.toggle-password {
    flex-shrink: 0;

    width: 48px;
    height: 100%;

    border: none;
    outline: none;

    background: transparent;
    color: var(--gold);

    cursor: pointer;
    font-size: 18px;
}

.toggle-password:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: -4px;
}

/* =========================================
   UNLOCK BUTTON
========================================= */

.unlock-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    width: 100%;
    min-height: 53px;

    margin-top: 17px;
    padding: 0 20px;

    border: none;
    border-radius: 3px;

    background: linear-gradient(
        110deg,
        #b89a61,
        #ddc48e
    );

    color: #142019;

    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;

    cursor: pointer;

    transition:
        background 0.25s,
        transform 0.25s,
        opacity 0.25s;
}

.unlock-button:hover {
    background: #eddaa9;
    transform: translateY(-2px);
}

.unlock-button:active {
    transform: translateY(0);
}

.unlock-button:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.unlock-button:focus-visible,
.whatsapp-button:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 4px;
}

.button-arrow {
    font-size: 17px;
}

/* Login messages */

.login-message {
    min-height: 18px;
    margin-top: 12px;

    color: var(--gold-light);
    font-size: 12px;
    text-align: center;
}

/* =========================================
   WHATSAPP ACCESS
========================================= */

.access-divider {
    display: flex;
    align-items: center;
    gap: 13px;

    margin: 19px 0;
}

.access-divider span {
    flex: 1;
    height: 1px;

    background: rgba(201, 170, 112, 0.2);
}

.access-divider small {
    color: #819084;
    font-size: 9px;
    letter-spacing: 2px;
}

.request-text {
    margin-bottom: 13px;

    color: var(--muted);
    font-size: 12px;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    min-height: 49px;

    padding: 10px;

    border: 1px solid rgba(90, 195, 125, 0.42);
    border-radius: 3px;

    color: #b9d9c1;
    text-decoration: none;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;

    transition: background 0.25s, border-color 0.25s;
}

.whatsapp-button:hover {
    background: rgba(49, 133, 75, 0.18);
    border-color: #70c48c;
}

.whatsapp-icon {
    color: #65d48a;
    font-size: 20px;
}

/* =========================================
   FOOTER
========================================= */

.footer {
    position: absolute;
    bottom: 27px;
    left: 0;

    display: flex;
    justify-content: center;
    gap: 12px;

    width: 100%;

    z-index: 10;

    color: #a0ac9f;
    font-size: 9px;
    letter-spacing: 2px;
}

.footer-dot {
    color: var(--gold);
}

/* =========================================
   TABLET RESPONSIVENESS
========================================= */

@media (max-width: 768px) {
    .wave-border {
        height: 90px;
    }

    .wave {
        left: -65%;
        width: 230%;
    }

    .animated-ball {
        opacity: 0.65;
    }

    .ball-one {
        left: 3%;
    }

    .ball-two {
        right: 3%;
    }

    .ball-three {
        right: 4%;
    }
}

/* =========================================
   MOBILE RESPONSIVENESS
========================================= */

@media (max-width: 520px) {
    .login-page {
        min-height: 100svh;
        justify-content: center;

        padding: 100px 18px 85px;
        overflow-y: auto;
    }

    .top-bar {
        padding: 22px 20px;
    }

    .brand {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .secure-label {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .login-container {
        padding: 35px 23px;
    }

    .footer {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .moon {
        width: 120px;
        height: 120px;
    }
}

/* =========================================
   SHORT SCREEN SUPPORT
========================================= */

@media (max-height: 700px) {
    .login-page {
        justify-content: flex-start;

        padding-top: 95px;
        padding-bottom: 80px;

        overflow-y: auto;
    }

    .login-container {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .emblem {
        margin-bottom: 15px;
    }

    .intro {
        margin-bottom: 20px;
    }
}

/* =========================================
   ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
