/* === Login Page === */

body {
    background: #ffffff;
    overflow: hidden;
}

.login-page {
    display: grid;
    grid-template-columns: minmax(440px, 49%) 1fr;
    gap: 0;
    height: 100vh;
    padding: 20px;
}

/* ===========================
   Left Panel — Hero
   =========================== */
.login-hero {
    background: #eaf1f7;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.hero-visual {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.hero-content {
    padding: 32px 42px 36px;
    flex-shrink: 0;
}

.hero-heading {
    font-size: 28px;
    font-weight: 700;
    color: #1a1d2e;
    line-height: 1.2;
    margin-bottom: 12px;
}

.hero-description {
    font-size: 14.5px;
    color: #5a6070;
    line-height: 1.6;
    margin-bottom: 22px;
    max-width: 520px;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c0d4e4;
    transition: background 0.2s;
}

.hero-dots .dot.active {
    background: #2abfdf;
}

/* ===========================
   Right Panel — Form
   =========================== */
.login-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 72px 48px 18px 110px;
}

.login-form-container {
    width: 100%;
    max-width: 460px;
}

.login-brand {
    margin-bottom: 42px;
}

.login-brand .logo-wordmark {
    width: 240px;
    height: auto;
    display: block;
}

.login-greeting {
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
    color: #1a1d2e;
    margin-bottom: 10px;
}

.login-subtitle {
    font-size: 15px;
    color: #7f8794;
    margin-bottom: 34px;
    font-weight: 400;
}

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

.form-input {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    border: 1px solid #e8e9ec;
    border-radius: 8px;
    background: #ffffff;
    font-size: 14.5px;
    font-family: var(--font);
    color: #31343c;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    border-color: #c04aa0;
    box-shadow: 0 0 0 3px rgba(192, 74, 160, 0.10);
}

.form-input::placeholder {
    color: #999da8;
    font-weight: 400;
}

.form-input.error {
    border-color: #e35d7f;
}

.form-error {
    font-size: 12px;
    color: #d54469;
    margin-top: 4px;
    display: none;
}

.form-error.visible {
    display: block;
}

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

.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    appearance: none;
    width: 17px;
    height: 17px;
    border: 1.5px solid #d0d2d8;
    border-radius: 4px;
    background: #fff;
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.remember-me input[type="checkbox"]:checked {
    background: #c04aa0;
    border-color: #c04aa0;
}

.remember-me input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.remember-me span {
    font-size: 14px;
    color: #555b68;
}

.forgot-link {
    font-size: 14px;
    color: #c04aa0;
    text-decoration: none;
    font-weight: 500;
}

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

.btn-signin {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 8px;
    background: #c04aa0;
    color: #fff;
    font-size: 15.5px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    margin-bottom: 28px;
    letter-spacing: 0.01em;
}

.btn-signin:hover {
    background: #a93d8e;
    box-shadow: 0 8px 20px rgba(192, 74, 160, 0.22);
}

.btn-signin:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.login-divider-line {
    height: 1px;
    background: #dcdee2;
    flex: 1;
}

.login-divider-text {
    color: #888d99;
    font-size: 14px;
}

.btn-microsoft {
    width: 100%;
    height: 50px;
    border: 1px solid #d9dadd;
    border-radius: 8px;
    background: #fff;
    color: #2e3138;
    font-size: 14.5px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s, border-color 0.2s;
}

.btn-microsoft:hover {
    background: #f8f8fa;
    border-color: #c5c7cc;
}

/* Footer */
.login-footer {
    margin-top: 24px;
    width: 100%;
    max-width: 460px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #8f939e;
    font-size: 12px;
}

.login-footer-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.kosmoz {
    font-weight: 600;
    color: #676b74;
    letter-spacing: 0.04em;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1100px) {
    .login-page {
        grid-template-columns: 1fr;
        gap: 0;
        height: auto;
        min-height: 100vh;
        padding: 14px;
    }

    .login-hero {
        min-height: 420px;
        border-radius: 18px 18px 0 0;
    }

    .hero-content {
        padding: 24px 28px 28px;
    }

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

    .login-form-container {
        max-width: 100%;
    }

    .login-footer {
        max-width: 100%;
        margin: 20px auto 0;
    }
}

@media (max-width: 768px) {
    .login-page {
        padding: 10px;
    }

    .login-hero {
        min-height: 320px;
    }

    .hero-heading {
        font-size: 22px;
    }

    .hero-description {
        font-size: 13px;
    }

    .login-greeting {
        font-size: 26px;
    }

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

    .login-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}
