/* ==============================================
   Auth Layout — Login / Register / Recover
   ============================================== */

.auth-body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #F0F2F7;
}

.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 960px;
    width: 100%;
    gap: 16px;
    min-height: 620px;
}

/* ===== Left panel ===== */

.left-panel {
    background: #1A1D27;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
}

.left-panel::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(26,115,232,0.25) 0%, transparent 70%);
    pointer-events: none;
}

.left-panel::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(0,200,150,0.2) 0%, transparent 70%);
    pointer-events: none;
}

/* Logo */

.auth-logo {
    display: flex;
    align-items: center;
    /*gap: 10px;*/
    margin-bottom: 48px;
}

.auth-logo img{
    height:55px;
}

/* Headline */

.auth-headline {
    margin-bottom: 40px;
}

.auth-headline h2 {
    font-size: 28px;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.auth-headline p {
    font-size: 14px;
    color: rgba(255,255,255,0.45);
    line-height: 1.6;
}

/* Features */

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.feature-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.07);
}

.feature-title {
    font-size: 13px;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

.feature-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

/* Stat cards */

.stat-cards {
    display: flex;
    gap: 10px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.stat-card {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 14px 18px;
    backdrop-filter: blur(10px);
}

.stat-label {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.stat-change {
    font-size: 11px;
    color: var(--color-accent);
    margin-top: 2px;
}

/* ===== Right panel — Auth card ===== */

.auth-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-header {
    margin-bottom: 32px;
}

.auth-form-header h1 {
    font-size: 24px;
    font-weight: 800;
    color: #1A1D27;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.auth-form-header p {
    font-size: 14px;
    color: #6B7280;
}

/* Validation */

.auth-error {
    color: var(--color-error);
    font-size: 13px;
    margin-bottom: 16px;
}

.auth-success {
    color: var(--color-accent);
    font-size: 13px;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: rgba(0, 200, 150, 0.08);
    border: 1px solid rgba(0, 200, 150, 0.25);
    border-radius: 10px;
}

.auth-error ul {
    margin: 0;
    padding-left: 18px;
}

.field-error {
    color: var(--color-error);
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* Form fields */

.auth-form-fields {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.forgot-link {
    font-size: 12px;
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Inputs */

.input-field {
    width: 100%;
    background: #F8F9FC;
    border: 1.5px solid #E2E5EE;
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #1A1D27;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.input-field:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
    background: white;
}

.input-field::placeholder {
    color: #9CA3AF;
}

.input-field-password {
    padding-right: 44px;
}

.input-wrapper {
    position: relative;
}

.toggle-pwd-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9CA3AF;
    font-size: 16px;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.toggle-pwd-btn.active {
    color: var(--color-accent);
}

/* Checkbox */

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.remember-me label {
    font-size: 13px;
    color: #6B7280;
    cursor: pointer;
}

/* Submit button */

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--gradient-main);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;
    letter-spacing: -0.01em;
}

.btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Divider */

.divider-text {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #9CA3AF;
    font-size: 12px;
}

.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E2E5EE;
}

/* Register link */

.register-link {
    text-align: center;
    font-size: 13px;
    color: #6B7280;
}

.register-link a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Footer */

.auth-footer {
    text-align: center;
    font-size: 11px;
    color: #9CA3AF;
    margin-top: 32px;
    line-height: 1.6;
}

.auth-footer a {
    color: #6B7280;
    text-decoration: underline;
}

/* ===== Register-specific ===== */

.name-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.strength-bars {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.strength-bar {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #E2E5EE;
    transition: background 0.3s;
}

#strength-label {
    font-size: 11px;
    margin-top: 4px;
    color: #9CA3AF;
    min-height: 16px;
}

/* Password requirements checklist */

.pwd-requirements {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease;
}

.pwd-requirements--visible {
    max-height: 200px;
    opacity: 1;
}

.pwd-requirements [data-req] {
    font-size: 12px;
    color: #9CA3AF;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
    margin:0;
}

.pwd-requirements [data-req]::before {
    content: '○';
    font-size: 11px;
    color: #D1D5DB;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
    transition: color 0.2s;
}

.pwd-requirements [data-req].req-met {
    color: var(--color-accent);
}

.pwd-requirements [data-req].req-met::before {
    content: '✓';
    color: var(--color-accent);
    font-size: 12px;
    font-weight: 700;
}

.pwd-requirements [data-req].req-unmet {
    color: #6B7280;
}

.pwd-requirements [data-req].req-unmet::before {
    content: '○';
    color: #D1D5DB;
}

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.terms-check input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.terms-check label {
    font-size: 12px;
    color: #6B7280;
    cursor: pointer;
    line-height: 1.5;
}

.terms-check label a {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
}

.terms-check label a:hover {
    text-decoration: underline;
}

.register-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.register-step {
    display: flex;
    align-items: center;
    gap: 14px;
}

.step-number {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
}

.step-number.active {
    background: var(--gradient-main);
}

.step-number.pending {
    background: rgba(255, 255, 255, 0.1);
}

.step-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.step-text.step-text-active {
    color: rgba(255, 255, 255, 0.7);
}

.security-note {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    margin-top: 40px;
}
