/* CSS Reset & Variables - Updated to match admin dashboard */
:root {
    --primary: #3498db;
    --secondary: #5dade2;
    --accent: #2c3e50;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --border-radius: 20px;
    --box-shadow: 0 4px 20px rgba(44, 62, 80, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--dark);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 90% 10%, rgba(93, 173, 226, 0.2) 0%, transparent 20%),
        radial-gradient(circle at 10% 80%, rgba(44, 62, 80, 0.15) 0%, transparent 25%);
    z-index: -1;
}

/* Main Container */
.container {
    width: 100%;
    max-width: 450px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(52, 152, 219, 0.2);
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 30px 20px;
    text-align: center;
    position: relative;
}

.header::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%233498db' fill-opacity='1' d='M0,128L48,138.7C96,149,192,171,288,165.3C384,160,480,128,576,117.3C672,107,768,117,864,149.3C960,181,1056,235,1152,245.3C1248,256,1344,224,1392,208L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.logo i {
    font-size: 32px;
    margin-right: 10px;
    text-shadow: 0 2px 4px rgba(44, 62, 80, 0.2);
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 2px 4px rgba(44, 62, 80, 0.2);
}

.header p {
    font-size: 14px;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* Form Container */
.form-container {
    padding: 40px 30px;
}

.form-title {
    text-align: center;
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 24px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.otp-description {
    text-align: center;
    color: var(--gray);
    margin-bottom: 30px;
    font-size: 14px;
    line-height: 1.5;
}

/* Input Styles */
.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    z-index: 1;
    font-size: 18px;
}

.input-group input {
    width: 100%;
    padding: 15px 50px 15px 50px;
    border: 2px solid rgba(52, 152, 219, 0.2);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
    background: #f9fbfd;
    position: relative;
}

.input-group input:focus {
    border-color: var(--primary);
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(52, 152, 219, 0.3);
}

.btn:hover::before {
    left: 100%;
}

.btn:disabled {
    background: var(--gray);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn:disabled::before {
    display: none;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary);
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    color: white;
    text-align: center;
    font-weight: 500;
    box-shadow: var(--box-shadow);
    border: 2px solid rgba(255,255,255,0.2);
    animation: fadeIn 0.5s ease;
}

.alert-error {
    background: linear-gradient(135deg, var(--danger), #c0392b);
}

.alert-success {
    background: linear-gradient(135deg, var(--success), #219653);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading Animation */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-right-color: transparent;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    .container {
        max-width: 100%;
    }
    
    .header {
        padding: 25px 15px;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .form-title {
        font-size: 20px;
    }
    
    .input-group input {
        padding: 12px 45px 12px 45px;
        font-size: 14px;
    }
    
    .btn {
        padding: 12px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .header {
        padding: 20px 15px;
    }
    
    .form-container {
        padding: 25px 15px;
    }
    
    .logo h1 {
        font-size: 22px;
    }
    
    .logo i {
        font-size: 28px;
    }
    
    .form-title {
        font-size: 18px;
    }
}