/* Font-Face */
@font-face {
    font-family: 'Roboto';
    src: url('/static/a_home/fonts/Roboto/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
}
@font-face {
    font-family: 'Roboto';
    src: url('/static/a_home/fonts/Roboto/Roboto-Bold.ttf') format('truetype');
    font-weight: 700;
}

/* Base Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f9fafc;
    color: #00203f;
    margin: 0;
    padding: 0;
}

/* Password Reset Page Wrapper */
.password-reset-page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem 1rem;
}

/* Background Pattern */
.password-reset-bg-pattern {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='pattern' width='40' height='40' viewBox='0 0 40 40' patternUnits='userSpaceOnUse' patternTransform='rotate(45)'%3E%3Crect width='100%25' height='100%25' fill='none'/%3E%3Ccircle cx='20' cy='20' r='1' fill='%2300203F' fill-opacity='0.05'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23pattern)'/%3E%3C/svg%3E");
    opacity: 0.8;
    z-index: -1;
}

/* Password Reset Container */
.password-reset-container {
    width: 100%;
    max-width: 480px;
    z-index: 1;
}

/* Password Reset Card */
.password-reset-card {
    background-color: #ffffff;
    border-radius: 1.25rem;
    box-shadow: 0 15px 35px rgba(0, 32, 63, 0.12);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 32, 63, 0.05);
}

.password-reset-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 32, 63, 0.18);
}

/* Logo Section */
.password-reset-logo-section {
    padding: 2.5rem 0 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #00203f, #003366);
    position: relative;
    overflow: hidden;
}

.password-reset-logo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.candidate-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

/* Password Reset Content */
.password-reset-content {
    padding: 2.5rem 2rem 2rem;
}

.password-reset-title {
    font-size: 2rem;
    font-weight: 700;
    color: #00203f;
    margin-top: 0;
    margin-bottom: 0.5rem;
    text-align: center;
}

.password-reset-subtitle {
    font-size: 1.1rem;
    color: #6B46C1;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-align: center;
}

.password-reset-description {
    font-size: 1rem;
    color: #4A5568;
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.6;
}

/* Warning and Error Messages */
.password-reset-warning {
    display: flex;
    align-items: center;
    background-color: #FEF3CD;
    border-left: 4px solid #F59E0B;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.warning-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #F59E0B;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.password-reset-warning p {
    font-size: 0.875rem;
    color: #92400E;
    margin: 0;
}

.password-reset-error {
    display: flex;
    align-items: center;
    background-color: #FEF2F2;
    border-left: 4px solid #EF4444;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.error-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #EF4444;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.password-reset-error p {
    font-size: 0.875rem;
    color: #B91C1C;
    margin: 0;
}

/* Form Styles */
.password-reset-form {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #00203f;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.input-with-icon.focused {
    transform: translateY(-2px);
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: #a0aec0;
    z-index: 2;
    transition: color 0.3s ease;
}

.input-with-icon.focused .input-icon {
    color: #00203f;
}

.form-input {
    width: 100%;
    height: 56px;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    background-color: #ffffff;
    color: #00203f;
    transition: all 0.3s ease;
    box-sizing: border-box;
    display: block;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus {
    outline: none !important;
    border: 2px solid #00203f !important;
    box-shadow: 0 0 0 4px rgba(0, 32, 63, 0.1) !important;
    -webkit-box-shadow: 0 0 0 4px rgba(0, 32, 63, 0.1) !important;
    background-color: #fafbfc;
}

.form-input::placeholder {
    color: #a0aec0;
}

/* Button Styles */
.btn-password-reset {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #00203f, #004080);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 32, 63, 0.2);
}

.btn-password-reset:hover {
    background: linear-gradient(135deg, #002b54, #004d99);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 32, 63, 0.25);
}

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

/* Password Reset Actions */
.password-reset-actions {
    text-align: center;
}

.divider {
    position: relative;
    margin: 1.5rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    background: white;
    padding: 0 1rem;
    color: #6B7280;
    font-size: 0.875rem;
    position: relative;
}

.action-buttons {
    margin-bottom: 1.5rem;
}

.btn-outline-secondary {
    background: transparent;
    color: #00203f;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-secondary:hover {
    background: #f8f9fa;
    border-color: #00203f;
    color: #00203f;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Sign Up Link */
.signup-link-container {
    margin-top: 1rem;
}

.signup-link-container p {
    font-size: 0.9rem;
    color: #4A5568;
    margin: 0;
}

.signup-link {
    color: #00203f;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.signup-link:hover {
    color: #004080;
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.form-group:nth-child(1) {
    animation-delay: 0.2s;
}

.btn-password-reset {
    animation: fadeInUp 0.6s 0.4s ease forwards;
    opacity: 0;
}

.password-reset-actions {
    animation: fadeInUp 0.6s 0.6s ease forwards;
    opacity: 0;
}

.signup-link-container {
    animation: fadeInUp 0.6s 0.8s ease forwards;
    opacity: 0;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .password-reset-page-wrapper {
        padding: 1rem;
    }
    
    .password-reset-content {
        padding: 2rem 1.5rem;
    }
    
    .password-reset-title {
        font-size: 1.75rem;
    }
    
    .password-reset-subtitle {
        font-size: 1rem;
    }
    
    .password-reset-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .form-input {
        height: 52px;
        padding: 0.9rem 0.9rem 0.9rem 2.8rem;
    }
    
    .input-icon {
        left: 0.85rem;
        width: 1.1rem;
        height: 1.1rem;
    }
    
    .candidate-icon {
        width: 70px;
        height: 70px;
        font-size: 2.2rem;
    }
}

/* Bootstrap utility classes for proper positioning */
.me-2 {
    margin-right: 0.5rem !important;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-center {
    justify-content: center !important;
}

/* Additional focus states */
input.form-input:focus, 
input[type="email"].form-input:focus {
    outline: none !important;
    border: 2px solid #00203f !important;
    box-shadow: 0 0 0 4px rgba(0, 32, 63, 0.1) !important;
    -webkit-box-shadow: 0 0 0 4px rgba(0, 32, 63, 0.1) !important;
    outline-offset: 0 !important;
}

input.form-input:focus-visible {
    outline: none !important;
}

/* Remove any autofill styling */
input.form-input:-webkit-autofill,
input.form-input:-webkit-autofill:hover, 
input.form-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px white inset !important;
    box-shadow: 0 0 0px 1000px white inset !important;
    border: 2px solid #e2e8f0 !important;
}

input.form-input:-webkit-autofill:focus {
    border: 2px solid #00203f !important;
}