@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #173d82;
    --primary-hover: #0f2f68;
    --primary-light: #eaf1ff;
    --text: #111827;
    --text-muted: #667085;
    --border: #d0d5dd;
    --background: #f4f7fb;
    --white: #ffffff;
    --danger: #b42318;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    min-height: 100vh;
    font-family: 'Inter', Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(30, 64, 175, 0.09), transparent 35%),
        var(--background);
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.login-card {
    width: min(1080px, 100%);
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(420px, 46%) 1fr;
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(208, 213, 221, 0.7);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.login-form-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 68px;
}

.login-brand-mobile {
    display: none;
}

.login-title {
    max-width: 360px;
    margin-bottom: 12px;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.login-subtitle {
    max-width: 390px;
    margin-bottom: 38px;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #344054;
    font-size: 0.87rem;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.form-input::placeholder {
    color: #98a2b3;
}

.form-input:hover {
    border-color: #98a2b3;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(23, 61, 130, 0.12);
}

.password-input {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #667085;
    background: transparent;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.password-toggle svg {
    width: 19px;
    height: 19px;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 4px 0 24px;
}

.forgot-password {
    color: var(--primary);
    font-size: 0.87rem;
    font-weight: 600;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-button {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    color: var(--white);
    background: linear-gradient(135deg, #173d82, #2458b4);
    border: 0;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(23, 61, 130, 0.22);
    cursor: pointer;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.login-button:hover {
    background: linear-gradient(135deg, #102f69, #1e4b9a);
    box-shadow: 0 16px 30px rgba(23, 61, 130, 0.28);
    transform: translateY(-1px);
}

.login-button:active {
    transform: translateY(0);
}

.login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 22px;
    color: #667085;
    font-size: 0.77rem;
}

.login-security svg {
    width: 15px;
    height: 15px;
}

.login-visual-section {
    position: relative;
    min-height: 650px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 54px;
    color: var(--white);
    background:
        radial-gradient(circle at 78% 22%, rgba(242, 190, 48, 0.3), transparent 18%),
        radial-gradient(circle at 34% 40%, rgba(64, 113, 217, 0.75), transparent 36%),
        radial-gradient(circle at 68% 72%, rgba(93, 44, 140, 0.68), transparent 42%),
        linear-gradient(145deg, #082d6a 0%, #173d82 40%, #2f1e64 100%);
}

.login-visual-section::before,
.login-visual-section::after {
    content: '';
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.login-visual-section::before {
    width: 540px;
    height: 540px;
    top: -190px;
    right: -210px;
}

.login-visual-section::after {
    width: 430px;
    height: 430px;
    right: -170px;
    bottom: -190px;
}

.visual-top,
.visual-content,
.visual-footer {
    position: relative;
    z-index: 1;
}

.visual-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.visual-system-name {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.visual-badge {
    padding: 7px 11px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.visual-content {
    max-width: 420px;
}

.company-logo-placeholder {
    width: 250px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.company-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.login-logo-mobile {
    position: relative;
    z-index: 1;
    display: block;
    width: 125px;
    height: 74px;
    object-fit: contain;
    object-position: center;
}

.visual-title {
    margin-bottom: 16px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.visual-description {
    max-width: 380px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.98rem;
    line-height: 1.65;
}

.visual-footer {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.77rem;
}

.login-alert {
    margin-bottom: 20px;
    padding: 13px 15px;
    color: var(--danger);
    background: #fef3f2;
    border: 1px solid #fecdca;
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .login-page {
        padding: 20px;
    }

    .login-card {
        grid-template-columns: 1fr;
        max-width: 560px;
        min-height: auto;
    }

    .login-form-section {
        padding: 50px 42px;
    }

    .login-brand-mobile {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 130px;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    padding: 20px;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 22%, rgba(242, 190, 48, 0.22), transparent 18%),
        radial-gradient(circle at 34% 40%, rgba(64, 113, 217, 0.75), transparent 36%),
        radial-gradient(circle at 68% 72%, rgba(93, 44, 140, 0.68), transparent 42%),
        linear-gradient(145deg, #082d6a 0%, #173d82 40%, #2f1e64 100%);
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.login-brand-mobile::before,
.login-brand-mobile::after {
    content: '';
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.login-brand-mobile::before {
    width: 180px;
    height: 180px;
    top: -70px;
    right: -60px;
}

.login-brand-mobile::after {
    width: 140px;
    height: 140px;
    bottom: -70px;
    left: -40px;
}

    .login-visual-section {
        display: none;
    }
}

@media (max-width: 520px) {
   body {
    background: var(--background);
}

    .login-brand-mobile {
    min-height: 120px;
    margin-bottom: 28px;
    border-radius: 18px;
}

.login-logo-mobile {
    width: 118px;
    height: 68px;
}
    .login-page {
        align-items: flex-start;
        padding: 0;
    }

    .login-card {
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

    .login-form-section {
        justify-content: flex-start;
        padding: 42px 24px 32px;
    }

    .login-brand-mobile {
        margin-bottom: 54px;
    }

    .login-title {
        font-size: 2.15rem;
    }

    .login-subtitle {
        margin-bottom: 32px;
    }

    .form-input,
    .login-button {
        min-height: 54px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}