﻿:root {
    --red: #c00;
    --white: #fff;
    --gray: #f5f5f5;
    --dark: #333;
    --font: 'Montserrat', sans-serif;
}

/* ================================
   Login Section Container
================================ */
.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/Images/Flag.jpg') no-repeat center center;
    background-size: cover;
    padding: 20px;
    margin: 0;
    font-family: var(--font);
}

/* ================================
   Login Card
================================ */
.login-card {
    background: rgba(255, 255, 255, 0.9); /* White background for the entire card */
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

    .login-card h2 {
        margin-bottom: 30px;
        font-size: 2.4rem;
        color: var(--dark);
        font-weight: 900;
        letter-spacing: 0.5px;
        position: relative;
        padding-bottom: 10px;
        display: block; /* Make it take full width */
        background: transparent; /* Remove the white behind text */
    }


        .login-card h2::after {
            content: "";
            position: absolute;
            width: 50%;
            height: 3px;
            background: var(--red);
            bottom: 0;
            left: 25%;
            border-radius: 2px;
        }

.login-input {
    width: 100%;
    padding: 30px 10px 8px 10px;
    font-size: 1.4rem;
    border: none;
    border-bottom: 2px solid #ccc;
    background: transparent;
    border: 1px solid #ddd; /* Light border */
    border-radius: 25px; /* Rounded corners */
    transition: border-color 0.3s ease, padding 0.2s;
}

    .login-input:focus {
        border-bottom: 2px solid var(--red);
        outline: none;
        border-color: var(--red); /* Highlight border on focus */
    }

/* ================================
   Floating Labels & Inputs
================================ */
.form-group {
    position: relative;
    margin-bottom: 25px;
}

    .form-group input {
        width: 100%;
        padding: 30px 10px 8px 30px; /* Top, Right , Bottom, Left */
        font-size: 1.4rem;
        border: none;
        border-bottom: 2px solid #ccc;
        background: var(--white);
        transition: border-color 0.3s ease, padding 0.2s;

    }

        .form-group input:focus {
            border-bottom: 2px solid var(--red);
            outline: none;
        }

    /* Label starts inside input */
    .form-group label,
    .form-group span {
        display: block;
        position: absolute;
        top: 0px; /* vertically aligned */
        left: 5px;
        font-size: 1.4rem;
        font-weight: 700;
        color: var(--red);
        pointer-events: none;
        transition: 0.3s ease all;

    }


/* ================================
   Submit Button
================================ */
.btn-submit,
input[type="submit"].btn-submit {
    display: flex; /* Use flex to center text */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    width: 100%;
    padding: 14px 0;
    border-radius: 25px;
    border: none;
    font-size: 1.5rem;
    font-weight: 700; /* Stronger weight for sharper text */
    font-family: var(--font); /* Ensure Montserrat applies */
    color: #fff;
    background: var(--red) !important; /* Use solid red for clarity */
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    /* Text rendering optimizations */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
    backface-visibility: hidden;
}

    .btn-submit:hover {
        background: linear-gradient(90deg, #a00, #c00); /* Darker gradient */
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    }

/* ================================
   Error Messages
================================ */
.login-message {
    color: var(--red);
    margin-bottom: 10px;
    display: block;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}

/* ================================
   Animation
================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
