:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fbff;
    --surface-tint: #eef4ff;
    --border: #d9e3ef;
    --text: #203045;
    --muted: #6f7e92;
    --primary: #4f7cff;
    --primary-dark: #315fe0;
    --shadow: 0 28px 70px rgba(35, 48, 68, 0.12);
}

html,
body {
    min-height: 100%;
}

body.login-page {
    margin: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(79, 124, 255, 0.12), transparent 30%),
        linear-gradient(135deg, #f9fbff 0%, #eef4fb 100%);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

.login-shell {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
}

.login-layout {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.login-brand-panel,
.login-form-panel {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.login-brand-panel {
    flex: 1.1;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.94)),
        linear-gradient(135deg, #edf4ff 0%, #f8fbff 100%);
    border-right: 1px solid rgba(217, 227, 239, 0.8);
}

.login-brand-inner {
    width: 100%;
    padding: 26px 28px 20px;
    display: flex;
    flex-direction: column;
    
}

.login-brand-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.login-brand-logo {
    max-width: 250px;
    width: 100%;
    height: auto;
    object-fit: contain;
}
.login-brand-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0 8px;
    min-height: 0;
}

.login-brand-illustration {
    width: min(465px, 100%);
    max-height: 64vh;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 18px 36px rgba(49, 95, 224, 0.12));
}

.login-brand-footer {
    padding-top: 4px;
}

.login-brand-footer p {
    margin: 0;
    color: #7f7f7f;
    font-size: 0.88rem;
    line-height: 1.4;
    text-align: center;
}

.login-form-panel {
    flex: 0.9;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 18px 20px;
    background: var(--bg);
}

.login-form-card {
    width: 100%;
    max-width: 430px;
    max-height: calc(100vh - 36px);
    overflow: hidden;
   
    border-radius: 26px;
    box-shadow: var(--shadow);
    padding: 24px 28px 20px;
}

.login-form-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: var(--surface-tint);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.login-form-header {
    margin-bottom: 18px;
}

.login-company-logo {
    display: block;
        max-width: 112px;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 12px;
        margin: auto;
}

.login-title {
    text-align: center;
    margin: 0;
    color: #111112;
    font-size: 21px;
    margin-bottom: 10px;
    line-height: 1.12;
    margin-top: 5px;
    font-weight: 200;
    letter-spacing: -0.03em;
}

.header-description {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    font-size: 16px;
    color: #5f5b5b;
    padding-top: 12px;
    margin-top: -3px;
    text-align: center;
}

.header-description::before, .header-description::after {
    content: "";
    flex: 1;
    height: 2px;
    background: #4b78fb;
    /* max-width: 120px; */
    width: 29px;
}

.card-heading{
     text-align: center;
    margin: 0;
    color: #111112;
    font-size: 21px;
     margin-bottom: 20px;
    line-height: 1.12;
    font-weight: 200;
   
}

.login-subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.login-field {
    margin-bottom: 14px;
}

.login-label {
    display: block;
    margin-bottom: 6px;
    color: #18202a;
    font-weight: 700;
    font-size: 0.9rem;
}

.login-field {
    position: relative;
    margin-bottom: 14px;
}

.login-field::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 41px;
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    pointer-events: none;
    z-index: 2;
}

.login-field--user::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236f7e92' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.login-field--password::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236f7e92' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='10' rx='2' ry='2'/%3E%3Cpath d='M7 11V8a5 5 0 0 1 10 0v3'/%3E%3C/svg%3E");
}

.login-input {
    width: 86%;
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background-color: var(--surface-soft);
    color: var(--text);
    padding: 0 14px 0 44px;
    font-size: 0.95rem;
    box-shadow: none;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.login-input:-webkit-autofill,
.login-input:-webkit-autofill:hover,
.login-input:-webkit-autofill:focus,
.login-input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--text);
    -webkit-box-shadow: 0 0 0 1000px var(--surface-soft) inset;
    box-shadow: 0 0 0 1000px var(--surface-soft) inset;
    caret-color: var(--text);
}
.login-input::placeholder {
    color: #97a6ba;
}

.login-input:focus {
    border-color: rgba(79, 124, 255, 0.6);
    background: #fff;
    box-shadow: 0 0 0 0.18rem rgba(79, 124, 255, 0.14);
}

.login-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0 16px;
    flex-wrap: wrap;
}

.login-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
    cursor: pointer;
}

.login-check-input {
    width: 15px;
    height: 15px;
    accent-color: var(--primary);
    margin: 0;
}

.login-forgot-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
}

.login-forgot-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.login-submit-btn {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
   
    font-size: 0.98rem;
    letter-spacing: 0.02em;
    box-shadow: 0 14px 24px rgba(49, 95, 224, 0.2);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.login-submit-btn:hover,
.login-submit-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(49, 95, 224, 0.24);
    filter: brightness(1.02);
}

.login-form-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #edf1f7;
    color: var(--muted);
    font-size: 0.84rem;
    text-align: center;
}

.login-error {
    min-height: 18px;
    margin-top: 4px;
    color: #d64545;
    font-size: 0.84rem;
}

@media (max-width: 991.98px) {
    body.login-page {
        overflow: auto;
    }

    .login-shell,
    .login-layout {
        height: auto;
        min-height: 100vh;
        overflow: visible;
        flex-direction: column;
    }

    .login-brand-panel,
    .login-form-panel {
        min-height: auto;
        height: auto;
        overflow: visible;
    }

    .login-brand-panel {
        border-right: 0;
        border-bottom: 1px solid rgba(217, 227, 239, 0.8);
    }

    .login-brand-inner {
        padding-bottom: 18px;
    }

    .login-brand-visual {
        padding: 14px 0 4px;
    }

    .login-brand-illustration {
        max-height: 40vh;
    }

    .login-form-panel {
        padding: 18px 16px 24px;
    }

    .login-form-card {
        max-width: 100%;
        max-height: none;
        overflow: visible;
        padding: 22px 20px 18px;
        border-radius: 22px;
    }
}

@media (max-width: 575.98px) {
    .login-brand-logo,
    .login-company-logo {
        max-width: 150px;
    }

    .login-title {
        font-size: 1.45rem;
    }

    .login-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .login-forgot-link {
        white-space: normal;
    }
}





