/* Reset Password Page Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


@keyframes backgroundPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Container */
.reset-container {
    margin:0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
  
}

.mt-5 {
    margin-top: 0; /* Override to center vertically */
}

/* Reset Password Card */
.reset-password-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 3.5rem;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 650px;
    margin-top: 60px;
    margin-bottom: 80px;
    animation: slideInUp 1s ease-out;
    transform: perspective(1000px) rotateX(5deg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: perspective(1000px) rotateX(15deg) translateY(50px);
    }
    to {
        opacity: 1;
        transform: perspective(1000px) rotateX(5deg) translateY(0);
    }
}

.reset-password-card:hover {
    transform: perspective(1000px) rotateX(0deg) translateY(-5px);
    box-shadow: 
        0 35px 100px rgba(0, 0, 0, 0.4),
        0 0 0 2px rgba(255, 255, 255, 0.3),
        inset 0 4px 8px rgba(255, 255, 255, 0.5);
}

/* Page Header */
h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    text-shadow: 0 2px 8px rgba(44, 62, 80, 0.1);
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* Add icon to header */
h2::before {
    content: '';
    display: block;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    position: relative;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

/* Add lock icon using CSS */
h2::before {
    content: '🔒';
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Form Groups */
.mb-3 {
    margin-bottom: 1.5rem;
    position: relative;
}

/* Form Labels */
.form-label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: #2c3e50;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: all 0.3s ease;
}

.form-label::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transition: width 0.3s ease;
}

.mb-3:focus-within .form-label::after {
    width: 30px;
}

/* Form Controls */
.form-control {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid rgba(52, 152, 219, 0.2);
    border-radius: 15px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(248, 249, 250, 0.8);
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 0 0 4px rgba(52, 152, 219, 0.15),
        0 8px 25px rgba(52, 152, 219, 0.2);
        color: white;
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: #7f8c8d;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.form-control:focus::placeholder {
    opacity: 0.7;
}

/* Email input specific styling */
.form-control[type="email"] {
    background-image: linear-gradient(45deg, transparent 49%, rgba(52, 152, 219, 0.1) 50%, transparent 51%);
}

/* Button Styles */
.btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 18px 35px;
    border: none;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
  
    margin-top: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.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: left 0.6s;
}

.btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 15px 40px rgba(52, 152, 219, 0.4),
        inset 0 4px 8px rgba(255, 255, 255, 0.3);
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(-1px);
}



/* Additional Information Section */
.reset-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 15px;
    border-left: 4px solid #3498db;
    text-align: center;
}

.reset-info h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.reset-info p {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Back to Login Link */
.back-to-login {
    text-align: center;
    margin-top: 2rem;
}

.back-to-login a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-to-login a::before {
    content: '←';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.back-to-login a:hover {
    color: #2980b9;
    transform: translateX(-5px);
}

.back-to-login a:hover::before {
    transform: translateX(-3px);
}

.back-to-login a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transition: width 0.3s ease;
}

.back-to-login a:hover::after {
    width: 100%;
}

/* Success/Error Messages */
.alert {
    padding: 15px 20px;
    border-radius: 15px;
    margin-bottom: 2rem;
    font-weight: 500;
    text-align: center;
    animation: slideInDown 0.3s ease-out;
    border: none;
}

.alert-success {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.alert-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.alert-info {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Form Validation States */
.form-control.is-valid {
    border-color: #27ae60;
    background-image: linear-gradient(45deg, transparent 49%, rgba(39, 174, 96, 0.1) 50%, transparent 51%);
}

.form-control.is-invalid {
    border-color: #e74c3c;
    background-image: linear-gradient(45deg, transparent 49%, rgba(231, 76, 60, 0.1) 50%, transparent 51%);
}

.valid-feedback {
    color: #27ae60;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.invalid-feedback {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
        max-width: 100%;
    }
    
    .reset-password-card {
        padding: 2.5rem;
        transform: none;
        margin: 2rem 0;
    }
    
    .reset-password-card:hover {
        transform: translateY(-5px);
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .form-control {
        padding: 15px 18px;
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .reset-password-card {
        padding: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .form-control {
        padding: 14px 16px;
    }
    
    .btn {
        padding: 14px 25px;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .reset-password-card {
        background: rgba(44, 62, 80, 0.95);
        color: white;
    }
    
    h2 {
        color: white;
    }
    
    .form-label {
        color: #ecf0f1;
    }
    
    .form-control {
        background: rgba(52, 73, 94, 0.8);
        color: white;
        border-color: rgba(149, 165, 166, 0.3);
    }
    
    .form-control:focus {
        background: rgba(52, 73, 94, 0.9);
    }
    
    .reset-info {
        background: rgba(52, 152, 219, 0.2);
    }
    
    .reset-info h4 {
        color: #ecf0f1;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus indicators for keyboard navigation */
.form-control:focus,
.btn:focus,
.back-to-login a:focus {
    outline: 3px solid rgba(52, 152, 219, 0.5);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .reset-password-card {
        box-shadow: none;
        border: 1px solid #ddd;
        transform: none;
    }
    
    .btn {
        display: none;
    }
    
    body::before,
    body::after {
        display: none;
    }
}