/**
 * Member Authentication Styles
 * Professional & eye-catching design for login/register buttons & forms
 */

:root {
    --auth-primary: var(--brass, #b8860b);
    --auth-primary-hover: #9a6b0a;
    --auth-primary-dark: #7a5209;
    --auth-secondary: var(--espresso, #3e2723);
    --auth-light: var(--linen, #faf0e6);
}
/* Shared public auth header */
.top-nav {
    background: white;
    border-bottom: 1px solid #f0f0f0;
    padding: 16px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.nav-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--espresso, #3e2723);
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.nav-logo-link:hover { opacity: 0.8; }

.nav-logo-link img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-logo-text strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--espresso, #3e2723);
}

.nav-logo-text small {
    font-size: 11px;
    color: #888;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.breadcrumb a {
    color: var(--brass, #b8860b);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #9a6b0a;
    text-decoration: underline;
}

.breadcrumb span { color: #ccc; }
.breadcrumb .current { color: #888; }

@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .breadcrumb { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR AUTH BUTTONS
   ═══════════════════════════════════════════════════════════ */

.nav-auth-menu {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-auth-menu a {
    list-style: none;
}

/* Login Button */
#navLogin {
    color: var(--auth-primary);
    font-weight: 600;
    text-decoration: none;
    padding: 8px 16px;
    border: 2px solid var(--auth-primary);
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: none;
    background: transparent;
    list-style: none;
}

#navLogin::before,
#navLogin::after {
    content: none !important;
}

#navLogin::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--auth-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

#navLogin:hover {
    color: white;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
}

#navLogin:hover::before {
    left: 0;
}

/* Register Button */
#navRegister {
    background: var(--auth-primary);
    color: white;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    display: none;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.25);
    list-style: none;
}

#navRegister::before,
#navRegister::after {
    content: none !important;
}

#navRegister:hover {
    background: var(--auth-primary-hover);
    box-shadow: 0 6px 16px rgba(184, 134, 11, 0.4);
    transform: translateY(-2px);
}

#navRegister:active {
    transform: translateY(0);
}

/* Member Portal Button — solid brass, matches Daftar style */
#navMemberPortal {
    background: var(--auth-primary);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    display: none;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.25);
    list-style: none;
}

#navMemberPortal::before,
#navMemberPortal::after {
    content: none !important;
}

#navMemberPortal:hover {
    background: var(--auth-primary-hover);
    color: white;
    box-shadow: 0 6px 16px rgba(184, 134, 11, 0.4);
    transform: translateY(-2px);
}

#navMemberPortal:active {
    transform: translateY(0);
}

/* Keluar Button — outlined subtle with soft danger hover */
#navLogout {
    color: #888;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    display: none;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    background: transparent;
    list-style: none;
}

#navLogout::before,
#navLogout::after {
    content: none !important;
}

#navLogout:hover {
    color: #c62828;
    border-color: #ef9a9a;
    background: rgba(198, 40, 40, 0.04);
}

/* ═══════════════════════════════════════════════════════════
   LOGIN/REGISTER FORM BUTTONS
   ═══════════════════════════════════════════════════════════ */

.btn-login,
.btn-register {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-login::before,
.btn-register::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-login:hover,
.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(184, 134, 11, 0.4);
}

.btn-login:hover::before,
.btn-register:hover::before {
    width: 300px;
    height: 300px;
}

.btn-login:active,
.btn-register:active {
    transform: translateY(0);
}

.btn-login:disabled,
.btn-register:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.15);
}

/* ═══════════════════════════════════════════════════════════
   MOBILE AUTH BUTTONS
   ═══════════════════════════════════════════════════════════ */

.mobile-auth-menu a,
.mobile-member-menu a {
    text-decoration: none;
    display: block;
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.mobile-auth-menu a[href*="login"] {
    border: 2px solid var(--auth-primary);
    color: var(--auth-primary);
    background: transparent;
}

.mobile-auth-menu a[href*="login"]:active {
    background: var(--auth-primary);
    color: white;
}

.mobile-auth-menu a[href*="register"] {
    background: var(--auth-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.25);
}

.mobile-auth-menu a[href*="register"]:active {
    transform: scale(0.98);
}

.mobile-member-menu a[href*="member-portal"] {
    background: var(--auth-primary);
    color: white;
    font-weight: 700;
    border: none;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-member-menu a.mobile-logout-link {
    color: #888;
    font-size: 13px;
    background: transparent;
    border: 1.5px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

.mobile-member-menu a.mobile-logout-link:active {
    color: #c62828;
    border-color: #ef9a9a;
    background: rgba(198, 40, 40, 0.04);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .nav-auth-menu {
        gap: 6px;
    }

    #navLogin,
    #navRegister,
    #navMemberPortal {
        padding: 6px 10px;
        font-size: 12px;
    }

    #navLogout {
        padding: 6px 10px;
        font-size: 12px;
    }

    .btn-login,
    .btn-register {
        padding: 12px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .nav-auth-menu {
        gap: 4px;
    }

    #navLogin,
    #navRegister,
    #navMemberPortal,
    #navLogout {
        padding: 6px 8px;
        font-size: 11px;
    }

    #navLogin { border-width: 1px; }
    #navLogout { border-width: 1px; }

    .btn-login,
    .btn-register {
        padding: 11px 14px;
        font-size: 13px;
    }
}
