/* Hero section that covers full viewport */
.hero-section {
    background: linear-gradient(45deg, #C62828 0%, #D32F2F 15%, #E53935 30%, #FF5722 50%, #FF7043 65%, #FF8A65 80%, #FF9800 95%, #FFC107 100%);
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    padding-top: 120px;
    /* Account for fixed navbar */
    padding-bottom: 5rem;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-weight: 900;
    font-size: 4rem;
    line-height: 1.1;
    color: white;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-description {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 3rem;
    line-height: 1.6;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 3px solid rgba(255, 255, 255, 0.8);
    max-width: 500px;
    font-weight: 400;
}

.mara-logo {
    max-width: 180px;
    height: auto;
    filter: brightness(1.1);
}

/* Login Form Styles */
.login-form-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 5px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    margin-top: -100px;
    margin-left: auto;
    margin-right: 0;
}

.login-form-title {
    color: #C62828;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.login-form-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    border-color: #C62828;
    box-shadow: 0 0 0 0.2rem rgba(198, 40, 40, 0.25);
    outline: none;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.btn-login {
    background: #C62828;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.btn-login:hover {
    background: #B71C1C;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(198, 40, 40, 0.3);
}

.register-link {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.register-link a {
    color: #C62828;
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

.forgot-password {
    text-align: right;
    margin-bottom: 1.5rem;
}

.forgot-password a {
    color: #C62828;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.info_login {
    margin-bottom: 1rem;
}

/* Error Messages */
.alert {
    padding: 12px 15px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.9rem;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-description {
        font-size: 1.1rem;
        max-width: 100%;
    }

    .hero-content {
        padding-top: 120px;
    }

    .mara-logo {
        max-width: 140px;
    }

    .login-form-container {
        padding: 2rem;
        margin-top: 2rem;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .login-form-container {
        padding: 1.5rem;
        margin-top: 1rem;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Animation for content entrance */
.hero-content>* {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.8s ease forwards;
}

.hero-title {
    animation-delay: 0.2s;
}

.hero-description {
    animation-delay: 0.6s;
}

.mara-logo {
    animation-delay: 0.8s;
}

.login-form-container {
    animation-delay: 1s;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Updated background pattern to complement the new gradient */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 35%),
        radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 30%);
    z-index: 1;
}