/* =========================================================
   ACCOUNT MODULE
========================================================= */

.header-account {
    position: relative;
    display: flex;
    align-items: center;
}

/* =========================================================
   ACCOUNT BUTTON
========================================================= */

.header-account-btn {

    display: inline-flex;
    align-items: center;
    gap: 10px;

    height: 48px;

    padding: 0 18px;

    border: 1px solid rgba(71, 130, 61, 0.18);

    border-radius: 999px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.95),
            rgba(248,252,248,0.92)
        );

    color: #2f3b2f;

    cursor: pointer;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;

    backdrop-filter: blur(10px);

    box-shadow:
        0 4px 18px rgba(71,130,61,0.08);

}

.header-account-btn:hover {

    transform: translateY(-1px);

    border-color: rgba(71,130,61,0.35);

    box-shadow:
        0 8px 24px rgba(71,130,61,0.16);

}

/* =========================================================
   ACCOUNT AVATAR
========================================================= */

.account-avatar {

    width: 32px;
    height: 32px;

    border-radius: 50%;

    background: #47823D;

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;

    flex-shrink: 0;

}

/* =========================================================
   ACCOUNT TEXT
========================================================= */

.account-label {

    font-size: 15px;
    font-weight: 600;

    letter-spacing: 0.2px;

    white-space: nowrap;

}

/* =========================================================
   ACCOUNT DROPDOWN
========================================================= */

.header-account{

    position:relative;

    display:flex;

    align-items:center;

}

/* =========================================================
   ACCOUNT DROPDOWN
========================================================= */

.account-dropdown {

    position: fixed;

    top: 90px;
    right: 20px;

    width: 320px;

    padding: 20px;

    border-radius: 24px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.96),
            rgba(248,252,248,0.96)
        );

    backdrop-filter: blur(18px);

    border:
        1px solid rgba(71,130,61,0.12);

    box-shadow:
        0 16px 40px rgba(0,0,0,0.10);

    z-index: 99999;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform: translateY(10px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;

}

/* ACTIVE */

.account-dropdown.active {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform: translateY(0);

}

/* =========================================================
   ACCOUNT HEADER
========================================================= */

.account-dropdown-header {

    margin-bottom: 18px;

}

.account-dropdown-header h3 {

    font-size: 20px;
    font-weight: 700;

    color: #2c3a2c;

    margin-bottom: 6px;

}

.account-dropdown-header p {

    font-size: 14px;
    color: #5b6b5b;

}

/* =========================================================
   SOCIAL BUTTONS
========================================================= */

.social-login-btn {

    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    height: 48px;

    border: none;

    border-radius: 16px;

    background: white;

    cursor: pointer;

    font-size: 14px;
    font-weight: 600;

    margin-bottom: 12px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

    box-shadow:
        0 4px 12px rgba(0,0,0,0.05);

}

.social-login-btn:hover {

    transform: translateY(-1px);

    box-shadow:
        0 8px 20px rgba(0,0,0,0.08);

}

/* =========================================================
   DIVIDER
========================================================= */

.account-divider {

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 18px 0;

    position: relative;

}

.account-divider::before {

    content: "";

    position: absolute;

    width: 100%;
    height: 1px;

    background: rgba(0,0,0,0.08);

}

.account-divider span {

    position: relative;

    background: white;

    padding: 0 12px;

    font-size: 13px;

    color: #888;

}

/* =========================================================
   PRIMARY BUTTON
========================================================= */

.primary-auth-btn {

    width: 100%;
    height: 50px;

    border: none;

    border-radius: 16px;

    background: #47823D;

    color: white;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

    box-shadow:
        0 10px 20px rgba(71,130,61,0.18);

}

.primary-auth-btn:hover {

    transform: translateY(-1px);

}

/* =========================================================
   SECONDARY BUTTON
========================================================= */

.secondary-auth-btn {

    width: 100%;

    height: 48px;

    margin-top: 12px;

    border-radius: 16px;

    border:
        1px solid rgba(71,130,61,0.18);

    background: rgba(255,255,255,0.75);

    color: #2f3b2f;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

    .header-account-btn{

        width:52px;
        height:52px;

        min-width:52px;

        padding:0;

        display:flex;

        align-items:center;

        justify-content:center;

        gap:0;

        border-radius:50%;
    }

    .account-avatar{

        margin:0;

        width:32px;
        height:32px;

        display:flex !important;

        align-items:center;
        justify-content:center;

        background:#47823D;

        border-radius:50%;

        color:#fff;

        flex-shrink:0;
    }

    .account-avatar i{

        display:flex !important;

        align-items:center;
        justify-content:center;

        font-size:18px !important;

        color:#ffffff !important;

        line-height:1;
    }

    .account-label{
        display:none;
    }

    .account-dropdown{

        position:fixed;

        left:12px;
        right:12px;

        top:110px;

        width:auto;

        max-height:80vh;

        overflow-y:auto;

        z-index:99999;
    }
}

/* =========================================================
   AUTH FORM
========================================================= */

.auth-form{

    display:flex;

    flex-direction:column;

    gap:14px;

    margin-top:18px;
}

.auth-input{

    width:100%;

    height:48px;

    border-radius:14px;

    border:
        1px solid rgba(71,130,61,0.12);

    padding:0 16px;

    font-size:14px;

    outline:none;

    background:
        rgba(255,255,255,0.92);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.auth-input:focus{

    border-color:#47823D;

    box-shadow:
        0 0 0 4px rgba(71,130,61,0.08);
}

/* =========================================================
   AUTH LINKS
========================================================= */

.auth-link{

    font-size:13px;

    color:#47823D;

    text-decoration:none;

    font-weight:600;
}

.auth-link:hover{

    text-decoration:underline;
}

/* =========================================================
   LOGGED IN DROPDOWN
========================================================= */

.account-menu{

    display:flex;

    flex-direction:column;

    gap:8px;

    margin-top:10px;
}

.account-menu a,
.account-menu button{

    width:100%;

    height:44px;

    border:none;

    border-radius:12px;

    background:
        rgba(71,130,61,0.05);

    color:#2f3b2f;

    font-size:14px;

    font-weight:600;

    display:flex;

    align-items:center;

    justify-content:flex-start;

    padding:0 14px;

    cursor:pointer;

    text-decoration:none;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.account-menu a:hover,
.account-menu button:hover{

    background:
        rgba(71,130,61,0.12);

    transform:translateX(2px);
}

/* =========================================
   AUTH LINKS
========================================= */

.auth-link{

    display:block;

    margin-top:14px;

    color:var(--theme-green);

    font-size:15px;

    font-weight:600;

    text-decoration:none;

    transition:0.25s ease;

}

.auth-link:hover{

    color:var(--theme-orange);

    text-decoration:none;

}

.auth-link:visited{

    color:var(--theme-green);

}

.auth-link:focus{

    color:var(--theme-orange);

    outline:none;

}

/* =========================================
   AUTH FORM WRAPPERS
========================================= */

#loginFormWrapper,
#registerFormWrapper,
#forgotPasswordWrapper{

    animation:authFade 0.25s ease;

}

@keyframes authFade{

    from{

        opacity:0;
        transform:translateY(8px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}