﻿/* Container for the login form */
.login-container {
    position: absolute;
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%)
}
.panel {
    width: 500px;
    height: 300px;
    margin: 50px 20px 40px 100px;
    border-radius: 24px;
    background-color: var(#FFF0F1F5, #f0f0f0);
    box-shadow: 0 0 48px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
/* Title styling */
h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
}

/* Form elements */
.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #555;
}

input.form-control {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-top: 6px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

    input.form-control:focus {
        border-color: #0078d4;
        outline: none;
        background-color: #fff;
    }
input:focus:invalid {
    border-color: #e74c3c; /* Red border on invalid input when the user interacts */
    background-color: #f8d7da; /* Light red background for invalid input */
}

input:focus:valid {
    border-color: #28a745; /* Green border for valid input */
    background-color: #d4edda; /* Light green background for valid input */
}

input:invalid + .text-danger {
    display: block; /* Show error message when input is invalid */
}

.text-danger {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 6px;
    display: none; /* Hidden by default, only shows when validation fails */
}

input:focus:invalid + .text-danger {
    display: block; /* Show error message when the user focuses on the invalid field */
}

/* Button styling */
.accent-button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background-color: #0078d4;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}



.form-header {
    margin-bottom: 20px;
    text-align: center;
}

h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.info-text {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
    font-weight: normal;
    line-height: 1.4;
}