/* ==========================================
   MATARIX - Forgot Password Page Styles
   ==========================================*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    
    /* Background image */
    background-image: url("../images/ForgotPasswordBG.png"); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ==========================================
   MAIN CONTAINER STYLES
   ==========================================*/
.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* ==========================================
   HEADER SECTION STYLES (Logo & Company Info)
   ==========================================*/
.header-section {
    text-align: center;
    margin-bottom: 30px;
}

/* Company Logo */
.company-logo {
    width: 300px;
    height: 300px;
    object-fit: contain;
}

/* Company Tagline */
.company-tagline {
    font-size: 1.5rem;
    color: #666;
    font-weight: 400;
}

/* ==========================================
   FORGOT PASSWORD CARD STYLES
   ==========================================*/
.forgot-password-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    margin-bottom: 20px;
    text-align: center;
}

/* Shield Icon Container */
.shield-icon-container {
    margin-bottom: 20px;
}

/* Shield Icon */
.shield-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* Card Title */
.card-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 12px;
    font-weight: 600;
}

/* Card Description */
.card-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* ==========================================
   EMAIL INPUT SECTION STYLES
   ==========================================*/
.email-input-section {
    margin-bottom: 25px;
    text-align: left;
}

/* Email Label */
.email-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* Email Input Field */
.email-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    outline: none;
}

.email-input:focus {
    border-color: #d32f2f;
}

.email-input.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.email-input.warning {
    border-color: #ffc107;
}

.email-input::placeholder {
    color: #999;
}

/* Error Message */
.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 8px;
    padding: 8px 12px;
    background-color: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 4px;
    animation: fadeIn 0.3s ease;
}

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

/* Success Overlay */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.success-modal {
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.success-icon {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 20px;
}

.success-modal h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.success-modal p {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.email-sent {
    color: #d32f2f;
    font-weight: 600;
    background-color: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    margin: 15px 0;
}

.success-note {
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.success-btn {
    background-color: #d32f2f;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.success-btn:hover {
    background-color: #b71c1c;
}

/* Email Helper Text */
.email-helper-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 6px;
    line-height: 1.4;
}

/* ==========================================
   SEND RESET LINK BUTTON STYLES
   ==========================================*/
/* Send Reset Link Button */
.send-reset-btn {
    width: 100%;
    background-color: #d32f2f;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.send-reset-btn:hover {
    background-color: #b71c1c;
}

/* Button Icon */
.btn-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* ==========================================
   BACK TO LOGIN LINK STYLES
   ==========================================*/
/* Back to Login Link */
.back-to-login-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d32f2f;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.back-to-login-link:hover {
    color: #b71c1c;
    text-decoration: none;
}

/* Back Arrow Icon */
.back-arrow-icon {
    width: 16px;
    height: 16px;
    filter: hue-rotate(0deg) saturate(2) brightness(0.8);
}

/* ==========================================
   SECURITY NOTICE CARD STYLES
   ==========================================*/
.security-notice-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 20px;
    width: 100%;
    max-width: 450px;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* Security Notice Icon */
.security-notice-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Security Notice Text */
.security-notice-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #555;
    text-align: left;
}

/* ==========================================
   FOOTER SECTION STYLES
   ==========================================*/
.footer-section {
    text-align: center;
    max-width: 450px;
}

/* Contact Information */
.contact-info {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Support Email Link */
.support-email {
    color: #d32f2f;
    text-decoration: none;
}

.support-email:hover {
    text-decoration: underline;
    color: #b71c1c;
}

/* Support Phone Number */
.support-phone {
    color: #333;
    font-weight: 500;
}

/* Copyright Notice */
.copyright {
    font-size: 0.8rem;
    color: #999;
}

/* ==========================================
   BACKGROUND DECORATIVE ELEMENTS
   ==========================================*/

/* Remove decorations when using background image */
.bg-decoration-left,
.bg-decoration-right,
.bg-decoration-bottom-left {
    display: none;
}

/* ==========================================
   RESPONSIVE DESIGN
   ==========================================*/
@media (max-width: 768px) {
    .main-container {
        padding: 15px;
    }
    
    .forgot-password-card {
        padding: 30px 25px;
    }
    
    .company-logo {
        width: 250px;
        height: 250px;
    }
    
    .company-tagline {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .forgot-password-card {
        padding: 25px 20px;
    }
    
    .company-logo {
        width: 200px;
        height: 200px;
    }
    
    .company-tagline {
        font-size: 1.1rem;
    }
    
    .security-notice-card {
        padding: 15px;
    }
    
    .card-description br {
        display: none;
    }
}