* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #eef3f8;
    color: #1f2937;
}

.login-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(35, 86, 150, 0.14), transparent 28%),
        radial-gradient(circle at bottom right, rgba(20, 48, 90, 0.10), transparent 30%),
        linear-gradient(135deg, #f4f7fb 0%, #eaf0f7 100%);
}

.login-page {
    min-height: calc(100vh - 74px);
    display: flex;
    align-items: center;
    padding: 32px 0;
}

.login-wrapper {
    min-height: 680px;
    border-radius: 26px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.login-brand-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 42px 42px 34px;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 26%),
        radial-gradient(circle at bottom right, rgba(96, 165, 250, 0.14), transparent 30%),
        linear-gradient(145deg, rgba(12, 32, 67, 0.98) 0%, rgba(24, 67, 128, 0.95) 55%, rgba(18, 52, 102, 0.98) 100%);
    color: #ffffff;
    position: relative;
}

.login-brand-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
    pointer-events: none;
}

.login-brand-top,
.login-brand-content,
.login-brand-footer {
    position: relative;
    z-index: 1;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.login-brand-logo {
    max-width: 360px;
    width: 100%;
    margin-bottom: 28px;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.login-brand-title {
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 18px;
}

.login-brand-text {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.86);
    max-width: 500px;
    margin-bottom: 28px;
}

.login-brand-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.brand-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-weight: 500;
}

.brand-list-item i {
    color: #7dd3fc;
    font-size: 1rem;
}

.login-brand-footer {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.72);
}

.login-form-panel {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px 34px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.login-form-box {
    width: 100%;
    max-width: 430px;
}

.login-mobile-logo {
    text-align: center;
    margin-bottom: 24px;
}

.login-mobile-logo img {
    max-width: 210px;
    width: 100%;
}

.login-header {
    margin-bottom: 28px;
}

.login-overline {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2563eb;
}

.login-header h2 {
    margin: 0 0 10px;
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
}

.login-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.98rem;
    line-height: 1.6;
}

.form-label {
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.input-icon-group {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.95rem;
    z-index: 2;
}

.input-login {
    height: 56px;
    padding-left: 46px;
    border-radius: 14px;
    border: 1px solid #d9e2ec;
    background: #ffffff;
    color: #0f172a;
    box-shadow: none;
    transition: all 0.2s ease;
}

.input-login:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.18rem rgba(37, 99, 235, 0.14);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.form-check-label {
    color: #475569;
    font-size: 0.95rem;
}

.login-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.login-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.btn-login {
    height: 54px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
    transition: all 0.2s ease;
}

.btn-login:hover,
.btn-login:focus {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    color: #ffffff;
    transform: translateY(-1px);
}

.login-security-box {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 14px;
    padding: 14px 16px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    color: #1e3a8a;
    font-size: 0.94rem;
}

.login-security-box i {
    font-size: 1rem;
}

.login-footer {
    min-height: 74px;
    display: flex;
    align-items: center;
    background: #0f172a;
    color: rgba(255, 255, 255, 0.78);
}

.login-footer-content {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.92rem;
    padding: 0;
}

@media (max-width: 991.98px) {
    .login-page {
        min-height: auto;
        padding: 20px 0;
    }

    .login-wrapper {
        min-height: auto;
        border-radius: 22px;
    }

    .login-form-panel {
        padding: 30px 22px;
    }

    .login-header h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 575.98px) {
    .login-page {
        padding: 12px 0;
    }

    .login-form-panel {
        padding: 24px 16px;
    }

    .login-header h2 {
        font-size: 1.5rem;
    }

    .input-login,
    .btn-login {
        height: 52px;
    }

    .login-footer-content {
        font-size: 0.85rem;
    }
}