/* static/login.css */
:root {
    /* Style based on careers_portal .main-header */
    --card-bg: rgba(255, 255, 255, 0.1);
    --text-primary: #000000; /* Explicitly black as requested */
    --text-secondary: #333333; /* Dark gray for secondary text */
    --error-color: #D32F2F;
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-image: url('assets/hash_login.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-container {
    padding: 1rem;
}

.login-card {
    /* Glassmorphism effect from .main-header */
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.logo-container {
    margin-bottom: 1.5rem;
}

.login-logo {
    height: 40px;
    width: auto;
}

.login-card h1 {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.login-card p {
    color: var(--text-primary);
    margin: 0 0 2rem 0;
    font-weight: 500;
}

#login-with-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600; /* Bolder text */
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color 0.2s;

    /* Applying the same glassmorphism effect */
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

#login-with-google-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

#login-with-google-btn img {
    height: 24px;
    width: 24px;
    margin-right: 0.75rem;
}

.error-message {
    color: var(--error-color) !important;
    font-size: 0.875rem;
    margin-top: 1.5rem !important;
    height: 20px;
    font-weight: 500;
}


@media (max-width: 768px) {
    .login-container {
        padding: 0;
        width: 100%;
    }
    
    .login-card {
        padding: 2rem 1.5rem;
        box-shadow: none;
        border-radius: 0;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border: none;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}
