body {
    background: #f4f7f9;
}

body.login-page-active .main-content,
body.login .main-content {
    margin: 0;
    padding: 0;
}

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

.login-left {
    position: relative;
    display: flex;
    align-items: center;
    padding: 70px 60px;
    background-image: url('/images/hero-banners.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.login-left-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(31, 94, 168, 0.92), rgba(15, 60, 115, 0.85));
}

.login-left-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    color: #fff;
    text-align: left;
}

.login-badge {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.login-left-content h1 {
    font-size: 64px;
    line-height: 1.05;
    margin-bottom: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.login-left-content p {
    font-size: 21px;
    line-height: 1.7;
    opacity: 0.96;
    max-width: 560px;
    margin-bottom: 28px;
}

.login-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.login-back-link:hover {
    text-decoration: underline;
}

.login-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: #f8fbff;
}

.login-card {
    width: 100%;
    max-width: 470px;
    background: #fff;
    border: 1px solid #e7eef7;
    border-radius: 22px;
    box-shadow: 0 16px 45px rgba(15, 60, 115, 0.10);
    padding: 38px 34px;
}

.login-card-header {
    margin-bottom: 28px;
    text-align: left;
}

.login-card-header h2 {
    font-size: 34px;
    color: #163a63;
    margin-bottom: 8px;
    font-weight: 700;
}

.login-card-header p {
    color: #6a7684;
    font-size: 15px;
    line-height: 1.6;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #163a63;
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    height: 54px;
    border: 1px solid #d9e5f2;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 16px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #1f5ea8;
    box-shadow: 0 0 0 4px rgba(31, 94, 168, 0.10);
}

.input-error {
    border-color: #d9534f !important;
}

.field-error {
    display: block;
    margin-top: 8px;
    color: #c0392b;
    font-size: 13px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5d6b7a;
    font-size: 14px;
}

.forgot-link {
    color: #1f5ea8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.forgot-link:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #1f5ea8, #0f3c73);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(31, 94, 168, 0.22);
}

.alert-success,
.alert-error {
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.alert-success {
    background: #edf9f0;
    border: 1px solid #cfead7;
    color: #256a3d;
}

.alert-error {
    background: #fff1f1;
    border: 1px solid #f1caca;
    color: #a33a3a;
}

@media (max-width: 1200px) {
    .login-left-content h1 {
        font-size: 54px;
    }

    .login-left-content p {
        font-size: 19px;
    }
}

/* Tablet */
@media (max-width: 992px) {

.login-page {
    grid-template-columns: 1fr;
}

.login-left {
    min-height: 360px;
    padding: 40px 28px;
    align-items: flex-end;
}

.login-left-content h1 {
    font-size: 42px;
}

.login-left-content p {
    font-size: 18px;
}

.login-right {
    padding: 40px 20px;
}

.login-card {
    max-width: 520px;
}

}


/* Mobile */
@media (max-width: 768px) {

.login-left {
    min-height: 300px;
    padding: 30px 20px;
}

.login-left-content h1 {
    font-size: 32px;
    margin-bottom: 12px;
}

.login-left-content p {
    font-size: 15px;
    line-height: 1.6;
}

.login-back-link {
    font-size: 14px;
}

.login-right {
    padding: 25px 16px 40px;
}

.login-card {
    padding: 26px 20px;
    border-radius: 16px;
}

.login-card-header h2 {
    font-size: 24px;
}

.login-card-header p {
    font-size: 14px;
}

.form-group input {
    height: 50px;
    font-size: 16px;
}

.login-btn {
    height: 50px;
    font-size: 15px;
}

.form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

}


/* Small phones */
@media (max-width: 480px) {

.login-left {
    min-height: 260px;
    padding: 24px 16px;
}

.login-left-content h1 {
    font-size: 26px;
}

.login-left-content p {
    font-size: 14px;
}

.login-card {
    padding: 22px 16px;
}

.login-btn {
    font-size: 14px;
}

}