/* ==========================================================================
   Accialogic Translucent Glassmorphism Authentication Suite
   Direct 1-to-1 Match with Reference Design
   ========================================================================== */

:root {
    --auth-bg-navy: #0e1726;
    --auth-accent-blue: #0284c7;
    --auth-accent-hover: #0ea5e9;
}

/* Fullscreen viewport container */
.translucent-auth-viewport {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Align right to match reference screenshot */
    padding-right: clamp(2rem, 8vw, 9rem);
    padding-left: 1.5rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--auth-bg-navy);
    overflow-x: hidden;
    overflow-y: auto;
}

/* Background Video Container & Ambient Lighting */
.translucent-auth-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: #0b1329;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.translucent-auth-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none;
}

/* Ambient gradient overlay across the whole video */
.translucent-auth-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 19, 41, 0.72) 0%, rgba(15, 23, 42, 0.62) 50%, rgba(11, 19, 41, 0.88) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Right-side depth tint */
.translucent-auth-bg::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 55%;
    min-width: 450px;
    background: linear-gradient(to right, transparent 0%, rgba(11, 19, 41, 0.5) 30%, rgba(11, 19, 41, 0.85) 70%, rgba(11, 19, 41, 0.98) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Top bar navigation pills */
.auth-top-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(241, 245, 249, 0.9);
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.auth-top-nav-btn:hover {
    color: #ffffff;
    background: rgba(2, 132, 199, 0.4);
    border-color: rgba(56, 189, 248, 0.5);
    transform: translateY(-1px);
    text-decoration: none;
}

/* Main Translucent Glass Card - Pure Frosted Glass (White/Ice Translucent Mix) */
.translucent-glass-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 470px;
    background: rgba(255, 255, 255, 0.08) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(14, 28, 54, 0.45) 100%) !important;
    backdrop-filter: blur(28px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
    border-radius: 28px !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 1px 0 rgba(255, 255, 255, 0.4) !important;
    padding: 2.25rem 2rem;
    color: #f8fafc;
}

.translucent-glass-card.card-wide {
    max-width: 860px !important;
}

@media (max-width: 1024px) {
    .translucent-auth-viewport {
        justify-content: center;
        padding-right: 1.25rem;
        padding-left: 1.25rem;
    }
}

/* Typography */
.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    font-size: 0.8125rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

/* Capsule Role Switcher */
.role-capsule-wrapper {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    padding: 0.25rem;
    margin-bottom: 1.25rem;
}

.role-capsule-btn {
    border: none;
    outline: none;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 1.1rem;
    border-radius: 9999px;
    color: #94a3b8;
    background: transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.role-capsule-btn.active {
    background: var(--auth-accent-blue);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.45);
}

.role-capsule-btn:not(.active):hover {
    color: #e2e8f0;
}

/* Mode Switcher Tabs */
.auth-mode-tab-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.25rem;
    background: rgba(15, 23, 42, 0.55);
    border-radius: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-mode-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    background: transparent;
    color: #94a3b8;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.55rem 0.75rem;
    border-radius: 0.625rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.auth-mode-tab-btn.active {
    background: rgba(30, 41, 59, 0.85);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.auth-mode-tab-btn:not(.active):hover {
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.04);
}

/* Input Fields & Labels */
.auth-field-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.auth-input-container {
    position: relative;
    width: 100%;
}

.auth-input-icon {
    position: absolute;
    inset-block: 0;
    left: 0;
    width: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    pointer-events: none;
    font-size: 0.875rem;
}

.auth-glass-input {
    width: 100%;
    background: rgba(23, 37, 65, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 0.875rem !important;
    padding: 0.75rem 1rem 0.75rem 2.75rem !important;
    font-size: 0.875rem !important;
    color: #f1f5f9 !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}

.auth-glass-input::placeholder {
    color: #64748b !important;
}

.auth-glass-input:focus {
    background: rgba(23, 37, 65, 0.95) !important;
    border-color: rgba(56, 189, 248, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15) !important;
    color: #ffffff !important;
}

/* Action Primary Button */
.auth-primary-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.78rem 1.25rem;
    border-radius: 0.875rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 18px rgba(2, 132, 199, 0.4);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
}

.auth-primary-btn:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    box-shadow: 0 6px 24px rgba(2, 132, 199, 0.55);
    transform: translateY(-1px);
    color: #ffffff;
    text-decoration: none;
}

.auth-primary-btn:active {
    transform: translateY(0);
}

.auth-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    border-radius: 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.auth-secondary-btn:hover {
    background: rgba(51, 65, 85, 0.85);
    color: #ffffff;
    text-decoration: none;
}

/* Social Buttons */
.auth-social-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: 0.75rem;
    background: rgba(23, 37, 65, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.auth-social-btn:hover {
    background: rgba(30, 48, 82, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Checkbox */
.auth-checkbox {
    width: 1rem;
    height: 1rem;
    background: rgba(23, 37, 65, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0.25rem;
    cursor: pointer;
    accent-color: var(--auth-accent-blue);
}

/* Subtle Links */
.auth-link-subtle {
    font-size: 0.75rem;
    font-weight: 600;
    color: #38bdf8;
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-link-subtle:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

/* Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider-text {
    position: relative;
    background: #111c2e;
    padding: 0 0.75rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #64748b;
    text-transform: lowercase;
}
