/* Keep authentication pages visually aligned with the system-wide navbar. */

.auth-page .global-nav {
    position: relative;
    top: auto;
    z-index: 1000;
    width: 100%;
    padding: 0 32px;
    background:
        radial-gradient(circle at top center, rgba(55, 171, 158, 0.24), transparent 26%),
        linear-gradient(135deg, #0d3d38 0%, #025649 48%, #012f2a 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: none;
}

.auth-page .global-nav-inner {
    width: min(1180px, 100%);
    max-width: 1180px;
    min-height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.auth-page .global-nav-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    text-decoration: none !important;
    white-space: nowrap;
}

.auth-page .global-nav-brand img {
    display: block;
    width: auto;
    height: 56px;
    object-fit: contain;
}

.auth-page .global-nav-links {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-page .global-nav-links li {
    position: relative;
    list-style: none;
}

.auth-page .global-nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.auth-page .global-nav-links a:hover,
.auth-page .global-nav-links a:focus-visible {
    color: #ffffff !important;
}

.auth-page .global-nav-links .has-sub > a::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    opacity: 0.7;
    transform: rotate(45deg) translateY(-1px);
    transform-origin: center;
}

.auth-page .global-nav-links .sub-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    z-index: 110;
    min-width: 220px;
    margin: 0;
    padding: 10px;
    display: grid;
    gap: 2px;
    visibility: hidden;
    opacity: 0;
    list-style: none;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(2, 86, 73, 0.1);
    border-radius: 18px;
    box-shadow: 0 18px 38px rgba(2, 86, 73, 0.12);
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.auth-page .global-nav-links .sub-menu a {
    width: 100%;
    padding: 10px 12px;
    color: #0f2420 !important;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.auth-page .global-nav-links .sub-menu a:hover,
.auth-page .global-nav-links .sub-menu a:focus-visible {
    color: #025649 !important;
    background: #f2faf7;
}

.auth-page .global-nav-links .has-sub:hover .sub-menu,
.auth-page .global-nav-links .has-sub:focus-within .sub-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.auth-page .global-nav-cta {
    flex: 0 0 auto;
    padding: 10px 22px;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}

.auth-page .global-nav-cta:hover,
.auth-page .global-nav-cta:focus-visible {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: none;
    transform: translateY(-1px);
}

.auth-page .auth-main {
    min-height: calc(100vh - 64px);
}

@media (max-width: 1180px) {
    .auth-page .global-nav-links {
        gap: 16px;
    }

    .auth-page .global-nav-links a {
        font-size: 11px;
    }
}

@media (max-width: 991px) {
    .auth-page .global-nav-links {
        display: none;
    }

    .auth-page .global-nav-inner {
        justify-content: space-between;
    }
}

@media (max-width: 600px) {
    .auth-page .global-nav {
        padding: 0 18px;
    }

    .auth-page .global-nav-inner {
        min-height: 64px;
    }

    .auth-page .global-nav-brand img {
        width: auto;
        height: 49px;
    }

    .auth-page .global-nav-cta {
        padding: 9px 14px;
        font-size: 11px;
    }
}
