/* 
 * auth-custom.css
 * Custom styling for all Authentication Pages 
 * (Login, Register, Forgot Password, Two-Factor)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }

body.auth-body {
    font-family: 'Inter', sans-serif;
    background: #f3f6f9; /* Light background */
    min-height: 100vh;
    margin: 0; 
    padding: 0;
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.auth-wrapper { 
    width: 100%; 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 30px 15px; 
}

.auth-card { 
    display: flex; 
    width: 100%; 
    max-width: 900px; 
    border-radius: 16px; 
    overflow: hidden; 
    box-shadow: 0 15px 35px rgba(23, 43, 76, 0.1); 
    background: #ffffff;
}

/* Left side remains dark so logo-light.png looks great */
.auth-left {
    flex: 1; 
    background: #172b4c; /* Brand primary dark */
    padding: 50px 40px; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between;
    position: relative; 
    overflow: hidden;
}

.auth-left::before { 
    content: ''; position: absolute; top: -80px; right: -80px; width: 250px; height: 250px; 
    border-radius: 50%; background: rgba(255,255,255,0.05); filter: blur(40px); 
}
.auth-left::after  { 
    content: ''; position: absolute; bottom: -60px; left: -40px; width: 200px; height: 200px; 
    border-radius: 50%; background: rgba(59,109,193,0.1); filter: blur(40px); 
}

.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; z-index: 2; position: relative; }
.brand img { height: 45px; width: auto; }

.hero-text h2 { font-size: 26px; font-weight: 700; color: #ffffff; margin: 0 0 12px; line-height: 1.3; z-index: 2; position: relative;}
.hero-text p { color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.7; margin: 0 0 30px; z-index: 2; position: relative;}

.feature-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; z-index: 2; position: relative;}
.feature-list li { display: flex; align-items: center; gap: 12px; color: #ffffff; font-size: 13px; font-weight: 500; }
.icon-badge { 
    width: 32px; height: 32px; border-radius: 8px; 
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); 
    display: flex; align-items: center; justify-content: center; 
    color: #ffffff; font-size: 13px; flex-shrink: 0; 
}

.left-footer { margin-top: 30px; color: rgba(255,255,255,0.4); font-size: 12px; z-index: 2; position: relative;}

/* Right side uses light theme */
.auth-right { 
    flex: 1.1; 
    background: #ffffff; 
    padding: 50px 45px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

.auth-right h3 { font-size: 24px; font-weight: 700; color: #172b4c; margin: 0 0 6px; }
.auth-right .sub { color: #64647b; font-size: 14px; margin: 0 0 28px; line-height: 1.6; }

.errMsg { display: block; color: #ef4444; font-size: 12px; margin-bottom: 10px; min-height: 16px; font-weight: 500; }

.form-label-custom { 
    display: block; font-size: 12px; font-weight: 600; 
    color: #172b4c; text-transform: uppercase; letter-spacing: 0.5px; 
    margin-bottom: 6px; 
}

.input-wrap { position: relative; margin-bottom: 20px; }
.input-icon { 
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%); 
    color: #a0aec0; font-size: 14px; z-index: 2; pointer-events: none; 
}

.input-wrap input {
    width: 100%; height: 48px;
    background: #f8fafc; border: 1.5px solid #e2e8f0;
    border-radius: 10px; color: #172b4c; font-size: 14px; font-family: 'Inter', sans-serif;
    padding: 0 14px 0 42px; transition: all 0.2s; outline: none;
}
.input-wrap input:focus { border-color: #3b6dc1; background: #ffffff; box-shadow: 0 0 0 3px rgba(59,109,193,0.1); }
.input-wrap input::placeholder { color: #94a3b8; }

.row-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #64647b; cursor: pointer; font-weight: 500; }
.checkbox-label input { accent-color: #3b6dc1; width: 16px; height: 16px; }

.forgot-link { font-size: 13px; color: #3b6dc1; text-decoration: none; font-weight: 600; }
.forgot-link:hover { text-decoration: underline; }

.btn-auth {
    width: 100%; height: 50px;
    background: #3b6dc1; /* Light skin primary btn color */
    border: none; border-radius: 10px; color: #fff; font-family: 'Inter', sans-serif;
    font-size: 15px; font-weight: 600; cursor: pointer; transition: opacity 0.2s, transform 0.1s;
}
.btn-auth:hover { background: #325a9e; }
.btn-auth:active { transform: translateY(0); }
.btn-auth:disabled { opacity: 0.6; cursor: not-allowed; }

.bottom-link { text-align: center; margin-top: 22px; font-size: 14px; color: #64647b; }
.bottom-link a { color: #3b6dc1; font-weight: 600; text-decoration: none; margin-left: 4px; }
.bottom-link a:hover { text-decoration: underline; }

/* OTP specific */
.email-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: #f1f5f9; border: 1px solid #e2e8f0;
    border-radius: 8px; padding: 6px 12px; font-size: 13px; color: #172b4c; font-weight: 600; margin-bottom: 28px;
}
.pin-label { display: block; font-size: 12px; font-weight: 600; color: #172b4c; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
.pin-code { display: flex; justify-content: center; gap: 12px; margin-bottom: 32px; }
.pin-code input {
    width: 60px; height: 60px;
    background: #f8fafc; border: 2px solid #e2e8f0;
    border-radius: 12px; color: #172b4c; font-size: 24px; font-weight: 700;
    text-align: center; outline: none; font-family: 'Inter', sans-serif;
    transition: all 0.2s; -webkit-appearance: none; -moz-appearance: textfield;
}
.pin-code input:focus { border-color: #3b6dc1; background: #ffffff; box-shadow: 0 0 0 3px rgba(59,109,193,0.1); transform: scale(1.05); }
.pin-code input.filled { border-color: #22c55e; background: rgba(34,197,94,0.05); }
.pin-code input::-webkit-inner-spin-button, .pin-code input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.info-box { 
    background: #f0f9ff; border: 1px solid #bae6fd; 
    border-radius: 10px; padding: 14px 16px; margin-bottom: 22px; 
    font-size: 13px; color: #0369a1; line-height: 1.6; font-weight: 500;
}
.info-box i { color: #0284c7; margin-right: 8px; }

@keyframes shake {
    0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-6px)} 40%,80%{transform:translateX(6px)}
}
.shake { animation: shake 0.4s ease; }

@media(max-width:768px) {
    .auth-card { flex-direction: column; max-width: 460px; }
    .auth-left { padding: 35px 30px 30px; }
    .feature-list { display: none; }
    .auth-right { padding: 35px 30px; }
    .pin-code input { width: 50px; height: 50px; font-size: 20px; }
}
