/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Comic Sans MS', sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #008000, #FFD700);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Background Video */
#video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Container */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Main Card */
.forgot-password-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

/* Logo Section */
.logo-container {
    background: linear-gradient(135deg, #008000, #006400);
    color: white;
    padding: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.school-logo {
    width: 80px;
    height: auto;
    animation: bounce 2s infinite alternate;
}

.school-title {
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    flex: 1;
    min-width: 300px;
}

/* Form Container */
.form-container {
    padding: 40px;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 28px;
    color: #008000;
    margin-bottom: 10px;
    font-weight: bold;
}

.form-header p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* Messages */
.message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-weight: 500;
    border-left: 4px solid;
    animation: fadeIn 0.5s ease-out;
    transition: all 0.5s ease;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

.message.info {
    background: #cce7ff;
    color: #0c5460;
    border-left-color: #17a2b8;
}

/* Form Styles */
.forgot-password-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:focus {
    outline: none;
    border-color: #008000;
    box-shadow: 0 0 0 3px rgba(0, 128, 0, 0.1);
    transform: translateY(-1px);
}

.form-group input::placeholder {
    color: #999;
}

.form-help {
    display: block;
    color: #666;
    font-size: 13px;
    margin-top: 5px;
    font-style: italic;
}

/* Reset Button */
.reset-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #008000, #006400);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.reset-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #006400, #004d00);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 128, 0, 0.3);
}

.reset-btn:active {
    transform: translateY(0);
}

.reset-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Additional Info */
.additional-info {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #e1e5e9;
}

.info-section {
    margin-bottom: 20px;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-section h3 {
    color: #008000;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.info-section ul {
    list-style: none;
    padding-left: 0;
}

.info-section ul li {
    padding: 5px 0;
    color: #555;
    font-size: 14px;
    position: relative;
    padding-left: 20px;
}

.info-section ul li::before {
    content: "•";
    color: #008000;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.info-section p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Form Footer */
.form-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.back-link {
    color: #008000;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #006400;
    text-decoration: underline;
    transform: translateX(-3px);
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-5px);
    }
}

/* Loading Animation */
.btn-loading {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .logo-container {
        padding: 25px 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .school-logo {
        width: 60px;
        margin-bottom: 10px;
    }
    
    .school-title {
        font-size: 20px;
        min-width: auto;
    }
    
    .form-container {
        padding: 30px 25px;
    }
    
    .form-header h2 {
        font-size: 24px;
    }
    
    .additional-info {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 25px 20px;
    }
    
    .form-header h2 {
        font-size: 22px;
    }
    
    .form-header p {
        font-size: 14px;
    }
    
    .form-group input {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .reset-btn {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .additional-info {
        padding: 15px;
    }
    
    .info-section h3 {
        font-size: 14px;
    }
    
    .info-section ul li,
    .info-section p {
        font-size: 13px;
    }
}

/* Focus Accessibility */
.reset-btn:focus,
.form-group input:focus,
.back-link:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .forgot-password-card {
        border: 2px solid #000;
    }
    
    .form-group input {
        border: 2px solid #333;
    }
    
    .message {
        border-width: 2px;
    }
}