/* 
===============================
GLOBAL STYLES
===============================
*/

:root {
    /* Brand Colors */
    --primary-color: #1A73E8;
    --secondary-color: #FFC107;
    --accent-color: #4CAF50;
    --neutral-color: #F5F5F5;
    --text-color: #333333;
    --error-color: #D32F2F;
    --success-color: #388E3C;
    --white: #FFFFFF;
    --light-gray: #E0E0E0;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--neutral-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 
===============================
CONTAINER AND LAYOUT
===============================
*/

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 
===============================
HEADER STYLES
===============================
*/

header {
    padding: 20px 0;
    margin-bottom: 30px;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    height: 60px;
    max-width: 200px;
}

/* 
===============================
MAIN CONTENT
===============================
*/

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 0;
}

.login-container {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 500px;
    text-align: center;
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.tagline {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    margin-bottom: 30px;
    color: var(--accent-color);
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 20px;
}

.info-text {
    margin-bottom: 15px;
    font-size: 14px;
    color: #555;
}

/* 
===============================
FORM ELEMENTS
===============================
*/

.form-group {
    margin-bottom: 25px;
}

input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.error-message {
    color: var(--error-color);
    font-size: 14px;
    text-align: left;
    margin-top: 5px;
    min-height: 20px;
    visibility: hidden;
}

.error-message.visible {
    visibility: visible;
}

.verification-group {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

/* 
===============================
BUTTONS
===============================
*/

.primary-btn, .secondary-btn {
    padding: 12px 24px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-bottom: 15px;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
}

.primary-btn:hover {
    background-color: #0D62D1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: rgba(26, 115, 232, 0.05);
}

/* 
===============================
LOADING INDICATORS
===============================
*/

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 30px auto;
    border: 4px solid rgba(26, 115, 232, 0.3);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: #555;
}

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

/* 
===============================
FOOTER STYLES
===============================
*/

footer {
    margin-top: auto;
    padding: 20px 0;
    border-top: 1px solid var(--light-gray);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #0D62D1;
    text-decoration: underline;
}

/* 
===============================
MODAL STYLES
===============================
*/

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #777;
}

.close-modal:hover {
    color: #333;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 
===============================
RESPONSIVE STYLES
===============================
*/

@media screen and (max-width: 768px) {
    .login-container {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

@media screen and (max-width: 480px) {
    .login-container {
        padding: 25px 15px;
    }
    
    input {
        padding: 10px 12px;
    }
    
    .primary-btn, .secondary-btn {
        padding: 10px 20px;
    }
}