body {
    overflow-x: hidden;
    /* Prevent horizontal scrolling */
    width: 100%;
    /* Set width to 100% of the container */
    max-width: 100%;
    /* Ensure it doesn't exceed the width */
}

.header-section {
    text-align: center;
    margin-bottom: 30px;
}

.main-header {
    color: #3498db;
    /* Complementing the button's color */
    font-size: 2.5em;
    margin: 5px 0;
}

.sub-header {
    color: #777;
    /* A bit muted to create a hierarchy */
    font-weight: normal;
    /* Reducing the boldness of <h4> */
    margin: 5px 0;
}


.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: white;
    padding: 20px;
}

.login-form {
    background-color: transparent;
    padding: 0;
    border-radius: 8px;
    box-shadow: none;
    width: 90%;
    max-width: 500px;
}

.form-group {
    margin-bottom: 15px;
    width: 100%;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 16px;
    margin-top: 5px;
    box-sizing: border-box;
}

.submit-btn {
    background-color: #3498db;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background-color: #2980b9;
}

.error-message {
    color: red;
    text-align: center;
    margin-top: 10px;
}

.field-error {
    color: #d9534f;
    font-size: 0.85em;
    display: block;
    margin-top: 5px;
    margin-bottom: 5px;
}

h1 {
    margin-bottom: 20px;
    color: #333;
}

/* Flash Messages */
.flash-message {
    width: 90%;
    max-width: 500px;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.flash-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Register and Login Link Styles */
.register-link,
.login-link,
.back-link {
    margin-top: 15px;
    text-align: center;
    width: 90%;
    max-width: 500px;
}

.reset-password-link {
    text-align: center;
    width: 100%;
    margin-top: 5px;
    margin-bottom: 20px;
}

.register-link a,
.login-link a,
.back-link a {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s;
}

.reset-password-link a {
    color: #3498db;
    text-decoration: none;
    font-size: 0.85em;
    transition: color 0.3s;
}

.register-link a:hover,
.login-link a:hover,
.back-link a:hover,
.reset-password-link a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Verification Page Styles */
.verification-info {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
    margin-bottom: 20px;
    text-align: center;
    color: #555;
    line-height: 1.5;
}

.verification-input {
    letter-spacing: 3px;
    font-size: 1.2em;
    text-align: center;
}

/* Forgot Password Button */
.forgot-password-btn {
    display: inline-block;
    background-color: transparent;
    color: #3498db;
    text-align: center;
    font-size: 0.9em;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid #3498db;
    margin-top: 5px;
}

.forgot-password-btn:hover {
    background-color: #3498db;
    color: white;
    text-decoration: none;
}

/* Dashboard Button Styles */
.dashboard-button-container {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
}

.dashboard-btn {
    display: inline-block;
    background-color: #2ecc71;
    color: white;
    text-align: center;
    font-size: 1.1em;
    padding: 12px 25px;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.dashboard-btn:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .login-container {
        background-color: white;
        padding: 20px;
    }

    .login-form {
        background-color: transparent;
        box-shadow: none;
        padding: 0;
    }

    .dashboard-button-container {
        margin-top: 30px;
        padding-top: 30px;
        border-top: 1px solid #eee;
    }
}