@font-face {
    font-family: 'DIN Next LT Pro';
    src: url('../Fonts/DINNextLTPro-Regular.otf') format('opentype');
    font-weight: normal;
}

@font-face {
    font-family: 'DIN Next LT Pro';
    src: url('../Fonts/DINNextLTPro-Bold.otf') format('opentype');
    font-weight: bold;
}

@font-face {
    font-family: 'Nandos Hand';
    src: url('../Fonts/Nandos Hand.otf') format('opentype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DIN Next LT Pro', Arial, sans-serif;
    background: #f7f1ee; /* Fallback background color */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #333;
    overflow-y: auto; /* Allow vertical scrolling */
}

.main-content {
    flex: 1;
    background: url('../images/HBQBackgrounsImage.jpg');
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px); /* Ensure full height minus footer */
    padding-bottom: 20px; /* Small padding at bottom */
}

.login-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.logo {
    font-family: 'Nandos Hand', cursive;
    font-size: 2.5rem;
    color: #e31837;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    font-weight: normal;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #000;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    letter-spacing: -0.3px;
    font-size: 14.5px;
    font-family: 'DIN Next LT Pro', Arial, sans-serif;
    transition: all 0.3s ease;
    background: #fafafa;
}

.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-container input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    z-index: 10;
}

.password-toggle:hover {
    color: #e31837;
}

.form-group input:focus {
    outline: none;
    border-color: #e31837;
    background: white;
    box-shadow: 0 0 0 3px rgba(227, 24, 55, 0.1);
}

.login-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #e31837 0%, #c41230 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'DIN Next LT Pro', Arial, sans-serif;
    margin-top: 1rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(227, 24, 55, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.forgot-password {
    margin-top: 1rem;
    text-align: center;
}

.logo-container {
    text-align: left;
    margin-bottom: 20px;
}

.forgot-password a {
    color: #e31837;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #c41230;
    text-decoration: underline;
}

.error-message {
    color: #e31837;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

.success-message {
    color: #28a745;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

.footer {
    position: relative;
    width: 100%;
    background: #000000;
    color: #ffffff;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
}

@media (max-width: 480px) {
    .login-container {
        margin: 1rem;
        padding: 2rem;
    }
    
    .logo {
        font-size: 2rem;
    }
}
