/* --- Global Reset & Variables --- */
:root {
    --primary-blue: #005FFF;
    --dark-text: #222222;
    --light-text: #6b7280;
    --border-color: #e5e7eb;
    --background-color: #ffffff;
    --footer-bg: #212529;
    --footer-text: #adb5bd;
    --footer-text-light: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--dark-text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Main Header --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    width: 100%;
    background-color: var(--background-color);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--primary-blue);
    border-radius: 6px;
    margin-right: 12px;
}

.logo-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-text);
}

.main-nav {
    display: flex;
    gap: 32px;
}

.main-nav a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-blue);
}

.header-icons {
    display: flex;
    gap: 24px;
}

.header-icons a {
    color: var(--dark-text);
    font-size: 22px;
    transition: color 0.3s ease;
}

.header-icons a:hover {
    color: var(--primary-blue);
}

/* --- Main Content --- */
.main-content {
    flex: 1; /* This makes the main content fill the available space */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
}

.forgot-password-container {
    max-width: 450px;
    width: 100%;
}

.forgot-password-container h1 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 12px;
}

.forgot-password-container p {
    font-size: 16px;
    color: var(--light-text);
    margin-bottom: 30px;
}

form {
    width: 100%;
}

form input[type="text"] {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

form input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 95, 255, 0.2);
}

.btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    background-color: var(--primary-blue);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0045cc;
}

/* --- Main Footer --- */
.main-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 5% 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--footer-text-light);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-col .logo-name {
    color: var(--footer-text-light);
}

.footer-about {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 15px;
    max-width: 300px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    text-decoration: none;
    color: var(--footer-text);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-col ul a:hover {
    color: var(--footer-text-light);
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--footer-text);
    font-size: 20px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--footer-text-light);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: #9ca3af;
    border-top: 1px solid #343a40;
}
/* --- RESPONSIVENESS --- */

/* 1. Tablet View (Max Width 992px) */
@media (max-width: 992px) {
    
    /* Footer: Switch from 5 columns to 2 columns */
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    /* Make the first column (Logo/About) span across both columns */
    .footer-col:first-child {
        grid-column: span 2; 
        text-align: center;
    }

    .footer-about {
        margin: 15px auto; /* Center the text */
    }

    /* Center social icons on tablet */
    .social-icons {
        justify-content: center;
    }
}

/* 2. Mobile View (Max Width 600px) */
@media (max-width: 600px) {

    /* --- Header Adjustments --- */
    .main-header {
        flex-direction: column; /* Stack Logo and Nav */
        padding: 15px;
        gap: 20px;
    }

    /* Hide navigation links on mobile to reduce clutter (Optional) */
    /* It is common practice to hide nav on login/forgot password pages */
    .main-nav {
        display: none; 
    }

    /* --- Main Content Adjustments --- */
    .main-content {
        padding: 40px 20px; /* Reduce vertical padding */
    }

    .forgot-password-container h1 {
        font-size: 26px; /* Reduce from 34px */
        text-align: center;
    }
    
    .forgot-password-container p {
        font-size: 14px;
        text-align: center;
    }

    /* --- Footer Adjustments --- */
    .footer-container {
        grid-template-columns: 1fr; /* Stack everything in 1 column */
        text-align: center;
        gap: 30px;
    }

    /* Reset the grid span from the tablet view */
    .footer-col:first-child {
        grid-column: span 1; 
    }

    .social-icons {
        justify-content: center;
    }
    
    .main-footer {
        padding: 40px 20px 0;
    }
}