/* ===== Nave Trading OS — Authentication screens — login & register ===== */
/* Extracted from style.css — 2026-06-19 */

/* ===== AUTH SCREENS ===== */
.auth-container {
    display: flex;
    min-height: 100vh;
    padding: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.auth-container.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ── Split layout ── */
.auth-left {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    padding: 3rem;
}

.auth-left::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(56,189,248,0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(99,102,241,0.06) 0%, transparent 50%);
    pointer-events: none;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(56,189,248,0.03) 0%, transparent 50%);
    animation: auth-glow-pulse 8s ease-in-out infinite;
}

@keyframes auth-glow-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

.auth-logo-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.auth-diamond {
    font-size: 5rem;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent) 0%, #818cf8 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 40px rgba(56,189,248,0.4));
    animation: auth-diamond-float 4s ease-in-out infinite;
}

@keyframes auth-diamond-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.auth-title {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-top: 0.5rem;
}

.auth-title span {
    font-weight: 300;
    color: var(--text-secondary);
}

.auth-tagline {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-top: 0.8rem;
    opacity: 0.7;
}

/* Accent line under tagline */
.auth-accent-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #6366f1);
    border-radius: 3px;
    margin-top: 1.5rem;
}

.auth-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0 1rem 1.5rem;
    font-size: 0.8rem;
    color: var(--accent);
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.auth-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2563eb;
    box-shadow: 0 0 8px #2563eb;
    animation: auth-dot-pulse 2s ease-in-out infinite;
}

@keyframes auth-dot-pulse {
    0%, 100% { box-shadow: 0 0 4px #2563eb; }
    50% { box-shadow: 0 0 14px #2563eb; }
}

/* ── Right panel: login form ── */
.auth-right {
    flex: 0 0 55%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.auth-box {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 420px;
    box-shadow:
        0 4px 32px rgba(0, 0, 0, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.03) inset,
        0 0 0 1px rgba(56, 189, 248, 0.05) inset;
    position: relative;
    overflow: hidden;
}

/* Subtle top accent glow */
.auth-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 0 0 2px 2px;
}

/* Inner ambient glow */
.auth-box::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.auth-box-header {
    margin-bottom: 2.2rem;
    position: relative;
    z-index: 1;
}

.auth-box-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.auth-box-header p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ── Inputs ── */
.auth-input-wrap {
    position: relative;
    margin-bottom: 1rem;
    z-index: 1;
}

.auth-input-wrap .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    pointer-events: none;
    transition: all 0.2s;
    opacity: 0.4;
}

.auth-input-wrap input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.75rem;
    background: rgba(11, 15, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.25s;
    letter-spacing: 0.01em;
}

.auth-input-wrap input::placeholder {
    color: rgba(148, 163, 184, 0.35);
}

.auth-input-wrap input:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(11, 15, 25, 0.8);
    box-shadow:
        0 0 0 4px rgba(56, 189, 248, 0.06),
        0 0 20px rgba(56, 189, 248, 0.05);
}

.auth-input-wrap input:focus ~ .input-icon,
.auth-input-wrap:focus-within .input-icon {
    opacity: 0.9;
}

/* ── Submit button ── */
.auth-submit {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.15) 0%, rgba(99, 102, 241, 0.1) 100%);
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.75rem;
    letter-spacing: 0.03em;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.auth-submit:hover {
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.25) 0%, rgba(99, 102, 241, 0.18) 100%);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow:
        0 0 30px rgba(56, 189, 248, 0.15),
        0 0 60px rgba(56, 189, 248, 0.05);
    color: #fff;
    transform: translateY(-2px);
}

.auth-submit:active {
    transform: translateY(0);
    transition: all 0.1s;
}

.auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.4rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color 0.2s;
    font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.form-group select { cursor: pointer; }
.form-group textarea { resize: vertical; min-height: 60px; }

.btn {
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: var(--gap-sm);
}
.btn-primary { background: linear-gradient(135deg, var(--accent), #6366f1); color: #fff; border: none; }
.btn-primary:hover { background: linear-gradient(135deg, var(--accent-hover), #818cf8); box-shadow: 0 0 16px rgba(56,189,248,0.25); }
.btn-secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-secondary:hover { background: rgba(56, 189, 248, 0.1); box-shadow: 0 0 10px rgba(56,189,248,0.1); }
.btn-sm { padding: 0.4rem 0.7rem; font-size: 0.8rem; }
.btn-danger { background: transparent; color: var(--text-secondary); border: 1px solid rgba(226,232,240,0.3); }
.btn-danger:hover { background: rgba(226, 232, 240, 0.08); }

.error-msg {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    margin-bottom: 1rem;
    display: none;
    animation: error-in 0.25s ease;
}
.error-msg.show { display: block; }

@keyframes error-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
