:root {
    --ink: #1f2937;
    --muted: #6b7280;
    --primary: #EF4444;
    --primary-dark: #DC2626;
    --surface: rgba(255, 255, 255, 0.95);
    --shadow: 0 12px 40px rgba(0,0,0,.12);
    --shadow-hover: 0 20px 60px rgba(0,0,0,.15);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: "Inter", "Poppins", sans-serif;
    background: url('/images/background.png') center center/cover no-repeat, 
                radial-gradient(circle at 80% 30%, rgba(239, 68, 68, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 20% 70%, rgba(33, 150, 243, 0.1) 0%, transparent 50%),
                linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    background-attachment: fixed;
    color: var(--ink);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    line-height: 1.6;
}

.main-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.forgot-card {
    width: 100%;
    max-width: 500px;
    background: var(--surface);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    box-shadow: var(--shadow-hover);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    padding: 50px 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.forgot-title {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.forgot-subtitle {
    font-size: 16px;
    color: var(--muted);
    font-weight: 500;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-label {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--ink);
    font-size: 15px;
    display: block;
}

.form-control {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid rgba(31, 41, 55, 0.1);
    border-radius: 16px;
    font-size: 16px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    color: var(--ink);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 16px;
    color: white;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(239, 68, 68, 0.3);
}

.back-link {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: rgba(239, 68, 68, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.1);
}

.back-link a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-link a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Alert styling */
.alert {
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    border: none;
    font-weight: 500;
    animation: slideInDown 0.4s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-danger {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.1), rgba(244, 67, 54, 0.05));
    color: #d32f2f;
    border-left: 4px solid #f44336;
}

.alert-success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.alert-info {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(33, 150, 243, 0.05));
    color: #1976d2;
    border-left: 4px solid #2196f3;
}

.text-danger {
    color: #d32f2f !important;
    font-size: 14px;
    margin-top: 6px;
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 768px) {
    .forgot-card {
        margin: 10px;
        padding: 40px 30px;
    }
    
    .forgot-title {
        font-size: 32px;
    }
}

.icon-container {
    text-align: center;
    margin-bottom: 30px;
}

.reset-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    box-shadow: 0 15px 35px rgba(239, 68, 68, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}