/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    height: 100%;
    font-family: 'Arial', sans-serif;
}
body {
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
/* Header */
.header-bar {
    background-color: #007bff;
    padding: 1rem;
    text-align: center;
    width: 100%;
}
.header-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}
.header-brand img {
    max-height: 40px;
    width: auto;
}
.header-brand span {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}
.header-brand:hover span {
    color: #e7f1ff;
}
/* Content */
.login-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    text-align: center;
}
h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
}
.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.form-group {
    width: 100%;
    max-width: 400px;
    margin-bottom: 1rem;
    text-align: left;
    position: relative; /* For positioning toggle icon */
}
.form-group label {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.3rem;
    display: block;
}
.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
    background: #fff;
}
.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}
.toggle-password {
    position: absolute;
    right: 10px;
    top: 60%;
    transform: translateY(-50%);
    color: #007bff;
    cursor: pointer;
    font-size: 1rem;
}
.toggle-password:hover {
    color: #0056b3;
}
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s;
}
.btn-primary {
    background-color: #007bff;
    color: #fff;
}
.btn-primary:hover {
    background-color: #0056b3;
}
.btn-primary i {
    margin-right: 0.5rem;
}
.login-icon {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1rem;
    display: block;
}
.login-links {
    margin-top: 1.5rem;
}
.login-links a {
    display: block;
    font-size: 0.9rem;
    color: #007bff;
    text-decoration: none;
    margin: 0.5rem 0;
}
.login-links a:hover {
    color: #0056b3;
    text-decoration: underline;
}
/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    padding: 1.5rem 0;
    text-align: center;
    width: 100%;
    margin-top: auto;
}
.footer-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}
.footer-text {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
.footer-links li {
    display: inline;
}
.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: #e7f1ff;
}
.footer-links i {
    margin-right: 0.3rem;
}
.footer-contact {
    font-size: 0.85rem;
}
.footer-contact a {
    color: #fff;
    text-decoration: none;
}
.footer-contact a:hover {
    color: #e7f1ff;
}
/* Responsive */
@media (max-width: 576px) {
    .header-bar {
        padding: 0.75rem;
    }
    .header-brand span {
        font-size: 1.25rem;
    }
    .header-brand img {
        max-height: 30px;
    }
    .login-container {
        margin: 1rem;
        padding: 1rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    .form-group {
        max-width: 100%;
    }
    .btn {
        padding: 0.5rem 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    .login-icon {
        font-size: 2rem;
    }
    .toggle-password {
        font-size: 0.9rem;
        right: 8px;
    }
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    .footer-text, .footer-contact {
        font-size: 0.8rem;
    }
}

/* smaller screen devices */
@media (max-width: 360px) {
.header-bar {
    padding: 0.5rem;
}
.header-brand span {
    font-size: 1.1rem;
}
.header-brand img {
    max-height: 25px;
}
.login-container {
    margin: 0.5rem;
    padding: 0.75rem;
}
h2 {
    font-size: 1.25rem;
}
.form-group {
    max-width: 100%;
}
.btn {
    padding: 0.4rem 0.8rem;
    width: 100%;
}
.login-icon {
    font-size: 1.75rem;
}
.footer-links {
    flex-direction: column;
    gap: 0.3rem;
}
.footer-text, .footer-contact {
    font-size: 0.7rem;
}
}
