/* ==========================================================================
   DVC Platform — Auth Pages CSS
   ========================================================================== */

:root {
    --dvc-primary:    #667eea;
    --dvc-secondary:  #764ba2;
    --dvc-success:    #11998e;
    --dvc-danger:     #f5576c;
    --dvc-gradient:   linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

body.auth-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* Background shapes */
.auth-bg-shapes { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    background: var(--dvc-gradient);
    animation: float 20s infinite ease-in-out;
}
.shape-1 { width: 400px; height: 400px; top: -100px; left: -100px; animation-delay: 0s; }
.shape-2 { width: 300px; height: 300px; bottom: -50px; right: -50px; animation-delay: -7s; }
.shape-3 { width: 200px; height: 200px; top: 50%; left: 50%; animation-delay: -14s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

/* Auth wrapper */
.auth-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Auth card */
.auth-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    animation: slideUp 0.4s ease-out;
}
.auth-card-wide { max-width: 640px; }

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Logo */
.auth-logo {
    text-align: center;
    margin-bottom: 24px;
}
.auth-logo a {
    text-decoration: none;
    color: #1a1a2e;
    display: inline-flex;
    align-items: center;
}
.auth-logo span { font-size: 1.3rem; color: #1a1a2e; }

/* Titles */
.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 4px;
}
.auth-subtitle {
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* Input groups */
.input-group-text {
    background: #f8f9fa;
    border-color: #e2e8f0;
    color: #6c757d;
}
.form-control {
    border-color: #e2e8f0;
    padding: 10px 14px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
    border-color: var(--dvc-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}
.form-label { font-weight: 500; font-size: 0.9rem; color: #374151; }

/* Auth button */
.btn-auth {
    padding: 12px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 10px;
    background: var(--dvc-gradient);
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-auth:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(102,126,234,.4); }
.btn-primary { background: var(--dvc-gradient); border: none; }
.btn-primary:hover, .btn-primary:focus { background: var(--dvc-gradient); opacity: 0.9; }

/* Divider */
.auth-divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
}
.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid #e2e8f0;
}
.auth-divider span {
    background: #fff;
    padding: 0 12px;
    position: relative;
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 500;
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #6c757d;
}
.auth-footer a { color: var(--dvc-primary); font-weight: 600; }

/* OTP inputs */
.otp-digit {
    border-radius: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-color: #e2e8f0;
    transition: border-color 0.2s;
    padding: 0;
}
.otp-digit:focus { border-color: var(--dvc-primary); box-shadow: 0 0 0 3px rgba(102,126,234,.15); }

/* Alerts */
.alert { border-radius: 10px; border: none; font-size: 0.9rem; }
.alert-danger  { background: #fff5f5; color: #c53030; }
.alert-success { background: #f0fff4; color: #276749; }
.alert-info    { background: #ebf8ff; color: #2b6cb0; }

/* Responsive */
@media (max-width: 576px) {
    .auth-card { padding: 28px 20px; border-radius: 16px; }
    .otp-digit { width: 42px !important; height: 48px !important; font-size: 1.2rem !important; }
}
