/* ------------------------------
   GLOBAL STYLES
------------------------------ */
body {
    background-color: #f8f9fa;
    color: #333;
    font-family: 'Roboto', sans-serif;
}

/* ------------------------------
   HERO SECTION
------------------------------ */
.hero {
    position: relative;
    background: url('https://source.unsplash.com/1600x600/?education') no-repeat center center;
    background-size: cover;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(139, 0, 0, 0.7), rgba(70, 0, 0, 0.6)); /* Brick red gradient overlay */
}

.hero h1,
.hero p {
    position: relative;
    z-index: 1;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* ------------------------------
   CARD STYLING
------------------------------ */
.card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #fff7f7, #ffeaea);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-title {
    font-weight: 600;
    color: #8B0000;
    text-shadow: 1px 1px 2px rgba(139, 0, 0, 0.15);
}

.card-text {
    color: #555;
}

/* ------------------------------
   BUTTONS
------------------------------ */
.btn-primary {
    background: linear-gradient(to bottom, #8B0000, #600000);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 3px 6px rgba(139, 0, 0, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(to bottom, #A30000, #6A0000);
    box-shadow: 0 5px 12px rgba(139, 0, 0, 0.5);
}

.btn-secondary {
    background: linear-gradient(to bottom, #ffb300, #f57c00);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 3px 6px rgba(255, 167, 38, 0.5);
}

.btn-secondary:hover {
    box-shadow: 0 5px 12px rgba(245, 124, 0, 0.6);
}

/* ------------------------------
   FLASH MESSAGES
------------------------------ */
.flash-container {
    margin-bottom: 20px;
}

.alert {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.alert-success {
    background: linear-gradient(to right, #a5d6a7, #66bb6a);
    color: #1b5e20;
}

.alert-danger {
    background: linear-gradient(to right, #ffcdd2, #ef5350);
    color: #b71c1c;
}

/* ------------------------------
   LOGIN FORM
------------------------------ */
.login-form {
    border: 1px solid #ddd;
    padding: 25px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.input-darker {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
}

.input-darker:focus {
    border-color: #8B0000;
    outline: none;
    box-shadow: 0 0 6px rgba(139, 0, 0, 0.3);
}

.captcha-img {
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* ------------------------------
   FOOTER
------------------------------ */
.footer {
    background: linear-gradient(to right, #8B0000, #5A0000);
    color: white;
    padding: 20px;
    font-size: 14px;
    text-align: center;
}

.footer a {
    color: #ffeb3b;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
    color: #ffc107;
}

/* ------------------------------
   HEADINGS
------------------------------ */
h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    color: #8B0000;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(139, 0, 0, 0.2);
}

/* ------------------------------
   RESPONSIVENESS
------------------------------ */
@media (max-width: 768px) {
    .hero {
        padding: 30px 10px;
        min-height: 250px;
    }

    h1 { font-size: 24px; }
    h2, h3 { font-size: 20px; }
}
