:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #6366f1;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-color: #1f2937;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

/* Main wrapper - Centers content perfectly */
.reset-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem;
    overflow-y: auto;
}

/* Animated background effect */
.reset-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Container with max width */
.reset-container {
    width: 100%;
    max-width: 450px;
    margin: auto;
    position: relative;
    z-index: 1;
}

/* Main card */
.reset-card {
    background: white;
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.reset-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
}

/* Header section */
.reset-header {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.reset-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

.reset-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: white;
    position: relative;
    z-index: 1;
}

.reset-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Body section */
.reset-body {
    padding: 2rem;
}

/* Form styles */
.reset-form .form-group {
    margin-bottom: 1.5rem;
}

/* Floating input wrapper */
.reset-form .form-floating {
    position: relative;
}

.reset-form .form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0.75rem 1rem;
    color: #6b7280;
    transition: all 0.25s ease;
    pointer-events: none;
    transform-origin: 0 0;
}

.reset-form .form-floating > label i {
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

.reset-form .form-floating > input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: all 0.25s ease;
    background: white;
}

.reset-form .form-floating > input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.reset-form .form-floating > input:focus + label {
    color: #4f46e5;
}

.reset-form .form-floating > input:not(:placeholder-shown) {
    padding-top: 1.25rem;
    padding-bottom: 0.25rem;
}

.reset-form .form-floating > input:not(:placeholder-shown) + label {
    transform: scale(0.85) translateY(-0.5rem);
}

.reset-form .form-floating > input.is-invalid {
    border-color: #ef4444;
}

.reset-form .form-floating > input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Password toggle button */
.reset-form .password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.15s ease;
    z-index: 10;
}

.reset-form .password-toggle:hover {
    color: #4b5563;
}

.reset-form .password-toggle i {
    font-size: 1rem;
}

/* Error message */
.reset-form .error-message {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #ef4444;
}

.reset-form .error-message i {
    margin-right: 0.25rem;
    font-size: 0.75rem;
}

/* Reset button */
.reset-button {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.reset-button::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.5s ease;
}

.reset-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4);
}

.reset-button:hover::before {
    left: 100%;
}

.reset-button:active {
    transform: translateY(0);
}

.reset-button i {
    font-size: 1rem;
    transition: transform 0.15s ease;
}

.reset-button:hover i {
    transform: translateX(4px);
}

/* Footer section */
.reset-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.reset-footer .login-text {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.reset-footer .login-text .login-link {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.reset-footer .login-text .login-link:hover {
    color: #4338ca;
    text-decoration: underline;
}

/* Animations */
@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .reset-container {
        max-width: 100%;
    }
    
    .reset-body {
        padding: 1.5rem;
    }
    
    .reset-header {
        padding: 1.5rem;
    }
    
    .reset-title {
        font-size: 1.5rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .reset-card {
        background: #1f2937;
    }
    
    .reset-body {
        background: #1f2937;
    }
    
    .reset-form .form-floating > input {
        background: #374151;
        border-color: #4b5563;
        color: white;
    }
    
    .reset-form .form-floating > input:focus {
        border-color: #4f46e5;
    }
    
    .reset-form .form-floating > label {
        color: #9ca3af;
    }
    
    .reset-footer {
        border-top-color: #4b5563;
    }
    
    .reset-footer .login-text {
        color: #9ca3af;
    }
}