* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f8fc;
    color: #172033;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

/* ==========================================================
   PAGE
========================================================== */

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================================
   HEADER
========================================================== */

.site-header {
    height: 78px;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #e5eaf1;
}

.header-container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.brand img {
    display: block;
    width: auto;
    height: 48px;
    object-fit: contain;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1557b0;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.back-home:hover {
    color: #0d3f82;
    transform: translateX(-2px);
}

.back-home:focus-visible {
    outline: 3px solid rgba(21, 87, 176, 0.2);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ==========================================================
   MAIN
========================================================== */

.login-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 24px 72px;
}

.login-layout {
    width: min(1040px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(400px, 0.95fr);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(21, 53, 92, 0.1);
}

/* ==========================================================
   INFORMATION PANEL
========================================================== */

.login-information {
    position: relative;
    overflow: hidden;
    padding: 58px;
    background: linear-gradient(145deg, #1557b0 0%, #0f478f 100%);
    color: #ffffff;
}

.login-information::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: -120px;
    top: -120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.login-information::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    left: -120px;
    bottom: -110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.information-content {
    position: relative;
    z-index: 1;
}

.information-label {
    display: inline-block;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.login-information h1 {
    max-width: 480px;
    margin: 0 0 20px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -1px;
}

.login-information p {
    max-width: 480px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
    line-height: 1.7;
}

.information-points {
    margin-top: 38px;
    display: grid;
    gap: 18px;
}

.information-point {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.point-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    font-size: 15px;
    font-weight: 800;
}

.information-point strong {
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
}

.information-point span {
    display: block;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    line-height: 1.5;
}

/* ==========================================================
   FORM PANEL
========================================================== */

.login-form-panel {
    padding: 58px 52px;
    display: flex;
    align-items: center;
}

.login-form-wrapper {
    width: 100%;
}

.form-heading {
    margin-bottom: 32px;
}

.form-heading > span {
    display: block;
    margin-bottom: 9px;
    color: #d21f2b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.form-heading h2 {
    margin: 0 0 10px;
    color: #172033;
    font-size: 30px;
    line-height: 1.15;
}

.form-heading p {
    margin: 0;
    color: #6c7687;
    font-size: 14px;
    line-height: 1.6;
}

/* ==========================================================
   ALERT
========================================================== */

.login-alert {
    display: none;
    margin-bottom: 22px;
    padding: 13px 15px;
    border: 1px solid #f1b7bc;
    border-left: 4px solid #d21f2b;
    border-radius: 8px;
    background: #fff5f6;
    color: #a61924;
    font-size: 13px;
    line-height: 1.5;
}

.login-alert.show {
    display: block;
}

/* ==========================================================
   FORM
========================================================== */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #263247;
    font-size: 13px;
    font-weight: 700;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid #d7dee9;
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    color: #172033;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder {
    color: #9aa4b3;
}

.form-input:hover {
    border-color: #b7c2d2;
}

.form-input:focus {
    border-color: #1557b0;
    box-shadow: 0 0 0 3px rgba(21, 87, 176, 0.1);
}

.password-input {
    padding-right: 52px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 34px;
    height: 34px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #687386;
    cursor: pointer;
}

.toggle-password:hover {
    background: #f2f5f9;
    color: #1557b0;
}

.toggle-password:focus-visible {
    outline: 3px solid rgba(21, 87, 176, 0.15);
    outline-offset: 2px;
}

/* ==========================================================
   FORM OPTIONS
========================================================== */

.form-options {
    margin-top: -3px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.remember-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #687386;
    font-size: 12px;
    cursor: pointer;
}

.remember-option input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #1557b0;
}

/* ==========================================================
   LOGIN BUTTON
========================================================== */

.login-button {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 8px;
    background: #1557b0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.login-button:hover {
    background: #0f478f;
    box-shadow: 0 8px 20px rgba(21, 87, 176, 0.2);
}

.login-button:active {
    transform: translateY(1px);
}

.login-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-button:focus-visible {
    outline: 3px solid rgba(21, 87, 176, 0.2);
    outline-offset: 3px;
}

/* ==========================================================
   REGISTER
========================================================== */

.register-area {
    margin-top: 25px;
    padding-top: 23px;
    border-top: 1px solid #e8edf3;
    text-align: center;
    color: #687386;
    font-size: 13px;
}

.register-area a {
    color: #1557b0;
    font-weight: 800;
}

.register-area a:hover {
    color: #0f478f;
    text-decoration: underline;
}

.register-area a:focus-visible {
    outline: 3px solid rgba(21, 87, 176, 0.15);
    outline-offset: 3px;
    border-radius: 3px;
}

/* ==========================================================
   FOOTER
========================================================== */

.site-footer {
    padding: 22px 24px;
    background: #ffffff;
    border-top: 1px solid #e5eaf1;
    text-align: center;
}

.site-footer p {
    margin: 0;
    color: #8a94a4;
    font-size: 12px;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 900px) {
    .login-layout {
        grid-template-columns: 1fr;
    }

    .login-information {
        padding: 42px 40px;
    }

    .information-points {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .login-form-panel {
        padding: 42px 40px;
    }
}

@media (max-width: 640px) {
    .site-header {
        height: 70px;
    }

    .header-container {
        width: min(100%, calc(100% - 32px));
    }

    .brand img {
        height: 42px;
    }

    .back-home {
        font-size: 12px;
    }

    .login-main {
        padding: 30px 16px 45px;
    }

    .login-information {
        padding: 34px 28px;
    }

    .login-information h1 {
        font-size: 32px;
    }

    .information-points {
        grid-template-columns: 1fr;
    }

    .login-form-panel {
        padding: 34px 28px;
    }

    .form-heading h2 {
        font-size: 26px;
    }
}

@media (max-width: 420px) {
    .login-information {
        padding: 30px 22px;
    }

    .login-form-panel {
        padding: 30px 22px;
    }

    .form-options {
        align-items: flex-start;
        flex-direction: column;
    }
}