:root {
    --auth-primary: #0f254c;
    --auth-primary-hover: #173766;
    --auth-accent: #d6573a;
    --auth-white: #ffffff;
}

/* MENU AUTH BUTTON */

.auth-menu-item {
    margin-left: 0;
}

.account-menu {
    position: relative;
    width: 100%;
}

.auth-menu-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 16px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .94);
    font-family: var(--title-font);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        color .25s ease,
        background .25s ease,
        transform .25s ease;
}

.auth-menu-button i {
    position: relative;
    top: 0;
    font-size: 15px;
    line-height: 1;
}

.auth-menu-button::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 6px;
    height: 2px;
    background: var(--auth-accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s ease;
}

.auth-menu-button:hover {
    color: #ffffff;
    background: rgba(214, 87, 58, .18);
    transform: translateY(-1px);
}

.auth-menu-button:hover::after {
    transform: scaleX(1);
}

/* MODAL */

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-modal.active {
    display: flex;
}

.auth-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 18, 38, .72);
    backdrop-filter: blur(7px);
}

.auth-modal__window {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 480px;
    padding: 35px;
    background: var(--auth-white);
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .28);
    font-family: "Adobe Clean UX Bold", Arial, sans-serif;
}

.auth-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: var(--auth-primary);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    transition:
        color .25s ease,
        transform .25s ease;
}

.auth-modal__close:hover {
    color: var(--auth-accent);
    transform: rotate(90deg);
}

/* TABS */

.auth-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(15, 37, 76, .14);
}

.auth-tab {
    flex: 1;
    height: 50px;
    border: 0;
    background: transparent;
    color: var(--auth-primary);
    font-family: "Adobe Clean UX Bold", Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: color .25s ease;
}

.auth-tab.active {
    color: var(--auth-primary);
    border-bottom: 3px solid var(--auth-primary);
}

.auth-tab:hover {
    color: var(--auth-accent);
}

/* FORMS */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-form input {
    height: 52px;
    padding: 0 16px;
    border: 1px solid rgba(15, 37, 76, .18);
    border-radius: 12px;
    background: var(--auth-white);
    color: var(--auth-primary);
    font-family: "Adobe Clean UX Bold", Arial, sans-serif;
    font-size: 15px;
    transition:
        border-color .25s ease,
        box-shadow .25s ease;
}

.auth-form input::placeholder {
    color: rgba(15, 37, 76, .52);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(15, 37, 76, .08);
}

.auth-submit-btn {
    height: 54px;
    border: 0;
    border-radius: 12px;
    background: var(--auth-primary);
    color: var(--auth-white);
    font-family: "Adobe Clean UX Bold", Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .03em;
    cursor: pointer;
    transition:
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.auth-submit-btn:hover {
    background: var(--auth-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 37, 76, .22);
}

.auth-divider {
    position: relative;
    margin: 8px 0;
    color: rgba(15, 37, 76, .55);
    font-size: 13px;
    letter-spacing: .08em;
    text-align: center;
}

.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    width: 100%;
    height: 54px;
    padding: 0 20px;

    border: 1px solid rgba(15, 37, 76, .16);
    border-radius: 12px;
    background: #ffffff;
    color: var(--auth-primary);

    font-family: "Adobe Clean UX Bold", Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;

    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 37, 76, .06);

    transition:
        border-color .25s ease,
        background .25s ease,
        color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.google-login-btn::before {
    content: "G";

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

    width: 28px;
    height: 28px;

    border-radius: 50%;
    background: linear-gradient(135deg, #4285f4 0%, #34a853 38%, #fbbc05 68%, #ea4335 100%);
    color: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;

    box-shadow: 0 6px 14px rgba(66, 133, 244, .22);
}

.google-login-btn:hover {
    border-color: rgba(15, 37, 76, .32);
    background: #f8fbff;
    color: var(--auth-accent);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 37, 76, .12);
}

.google-login-btn:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(15, 37, 76, .08);
}

.auth-links {
    text-align: center;
}

.auth-links a {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 700;
    transition: color .25s ease;
}

.auth-links a:hover {
    color: var(--auth-accent);
}

.auth-hidden {
    display: none;
}

/* MESSAGES */

#authMessage {
    margin-bottom: 15px;
    font-size: 14px;
}

.auth-message {
    padding: 12px 14px;
    margin-bottom: 15px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.auth-message.error {
    background: #fff1f1;
    color: #b42318;
}

.auth-message.success {
    background: #ecfdf3;
    color: #027a48;
}

/* ACCOUNT DROPDOWN */

.account-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 9999;
    display: none;
    width: 270px;
    padding: 18px;
    background: rgba(15, 37, 76, .96);
    color: var(--auth-white);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 22px 48px rgba(0, 0, 0, .28);
    backdrop-filter: blur(10px);
    font-family: "Adobe Clean UX Bold", Arial, sans-serif;
}

.account-dropdown.active {
    display: block;
}

.account-dropdown__name {
    margin-bottom: 6px;
    color: var(--auth-white);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.account-dropdown__email {
    margin-bottom: 16px;
    color: rgba(255, 255, 255, .75);
    font-size: 13px;
    word-break: break-word;
}

.account-dropdown__btn,
.account-dropdown__logout {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 42px;
    margin: 0 0 10px;
    padding: 0 15px;
    border-radius: 0;
    box-sizing: border-box;
    font-family: "Adobe Clean UX Bold", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    cursor: pointer;
    transform: none !important;
}

.account-dropdown__btn {
    border: 1px solid var(--auth-accent);
    background: var(--auth-accent);
    color: #ffffff !important;
}

.account-dropdown__btn:hover {
    border-color: #e16a4f;
    background: #e16a4f;
    color: #ffffff !important;
}

.account-dropdown__logout {
    border: 1px solid rgba(255, 255, 255, .35);
    background: transparent;
    color: var(--auth-white);
    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease;
}

.account-dropdown__logout:hover {
    border-color: var(--auth-accent);
    background: var(--auth-accent);
    color: var(--auth-white);
}

/* FIX NAV LINK STYLES INSIDE ACCOUNT DROPDOWN */

.main-nav .account-dropdown a::after {
    display: none !important;
    content: none !important;
}

.main-nav .account-dropdown a,
.main-nav .account-dropdown a:hover {
    position: static !important;
    display: flex !important;
    width: 100% !important;
    height: 42px !important;
    padding: 0 15px !important;
    margin: 0 0 10px !important;
    color: #ffffff !important;
    font-family: "Adobe Clean UX Bold", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transform: none !important;
}

/* RESPONSIVE */

@media (max-width: 1199px) {
    .auth-menu-item {
        width: 100%;
        margin-left: 0;
    }

    .auth-menu-button {
        justify-content: center;
        width: 100%;
        height: 50px;
        padding: 0 18px;
        font-size: 22px;
    }

    .auth-menu-button::after {
        left: 18px;
        right: 18px;
    }

    .account-dropdown {
        position: static;
        width: 100%;
        margin-top: 8px;
    }
}

@media (max-width: 768px) {
    .auth-modal__window {
        padding: 28px 22px;
        border-radius: 18px;
    }
}

@media (max-width: 420px) {
    .auth-menu-button {
        font-size: 20px;
    }
}