﻿/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #e9ecef;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Login Container */
.login-container {
    max-width: 400px;
    width: 100%;
    margin: 50px auto;
    background-color: #ffffff;
    padding: 25px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    text-align: center;
}

    /* Heading with Underline */
    .login-container h2 {
        margin-bottom: 25px;
        font-size: 26px;
        color: #333;
        font-weight: 600;
        position: relative;
    }

        /* Longer Underline for Heading */
        .login-container h2::after {
            content: "";
            display: block;
            width: 45%; /* Adjust this value to increase or decrease the length */
            height: 3px;
            background-color: #007bff;
            margin: 10px auto 0;
        }

/* Panel for the Form */
.login-panel {
    width: 100%;
}

/* Form Group */
.form-group {
    margin-bottom: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

    /* Labels aligned to the left */
    .form-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
        color: #333;
    }

/* Inputs with Error Messages */
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    background-color: #f7f7f7;
    transition: border-color 0.3s ease;
}

    .form-control:focus {
        outline: none;
        border-color: #007bff;
    }

/* Error Messages */
.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    margin-left: 0;
}

/* Button */
.btn-submit {
    background-color: #007bff;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: 100%;
}

    .btn-submit:hover {
        background-color: #0056b3;
        transform: scale(1.03);
    }

    .btn-submit:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5);
    }

/* Link Styling */
.login-container a {
    color: #007bff;
    text-decoration: none;
}

    .login-container a:hover {
        text-decoration: underline;
    }

/* Registration Link */
.registration-link {
    margin-top: 20px;
    text-align: center;
}

    .registration-link span {
        font-size: 14px;
        color: #666;
    }

.register-link {
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
    margin-left: 5px;
}

    .register-link:hover {
        text-decoration: underline;
    }

/* Responsive */
@media (max-width: 600px) {
    .login-container {
        margin: 20px auto;
        padding: 20px;
    }
}
