:root {
    --bg-dark: #1D2129;
    --card-bg: #232933;
    --card-bg-gradient: linear-gradient(180deg, #232933, #212733);
    --input-bg: #181B24;
    --border: #414447;
    --text-main: #e8f0ff;
    --text-muted: #94a3b8;
    --primary: linear-gradient(135deg, #2b7bff, #5a33ff);
    --secondary-bg: #11161F;
}

body {
    margin: 0;
    padding: 20px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.card {
    width: 100%;
    max-width: 900px; /* Wider to accommodate 2 cols */
    background: var(--card-bg-gradient);
    border: 1px solid #151c33;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
    overflow: hidden;
    padding: 30px;
}

/* Two-column Layout */
.row {
    display: grid;
    grid-template-columns: 280px 1fr; /* Left col fixed width, right col flex */
    gap: 40px;
}

@media (max-width: 768px) {
    .row {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
}

/* Left Column (Branding) */
.col-left {
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-right: 1px solid rgba(255,255,255,0.05);
    padding-right: 20px;
}

@media (max-width: 768px) {
    .col-left {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding-bottom: 20px;
    }
}

.logo {
    height: 50px;
    width: auto;
    align-self: flex-start;
}

.brand-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0;
}

.brand-desc {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(179,198,255,0.4);
    overflow: hidden;
    margin-top: 10px;
    background: #000;
}
.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right Column (Forms) */
.col-right {
    display: flex;
    flex-direction: column;
}

h1 {
    margin: 0 0 5px 0;
    font-size: 22px;
}

.sub-header {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box; /* Fix padding issues */
}

input:focus {
    outline: none;
    border-color: #2b7bff;
    box-shadow: 0 0 0 1px rgba(43,123,255,0.3);
}

.btn {
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.2s, transform 0.1s;
}

.btn:active { transform: translateY(1px); }

/* Primary Button (Gradient) */
.btn.primary {
    background: var(--primary);
    color: white;
}
.btn.primary:hover { filter: brightness(1.1); }

/* Secondary Button (Dark) */
.btn.secondary {
    background: var(--secondary-bg);
    border: 1px solid var(--border);
    color: #cfe1ff;
    margin-top: 10px;
}
.btn.secondary:hover { background: #1a202b; }

.divider {
    margin: 20px 0;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}

.alert {
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 13px;
}
.alert.err { background: #3b1020; color: #ffd9e5; border: 1px solid #7f2441; }
.alert.ok { background: #102f3b; color: #cff2ff; border: 1px solid #1d5168; }

.hidden { display: none; }

.card .logo {
    width: 220px;          
    max-width: none;      
    height: auto;
    margin: 20px auto 15px 0; 
    display: block;
}