/* ===== Login page ===== */

.login-body {
    padding-top: 0;
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.login-wrapper {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px;
    padding-top: min(12vh, 120px);
}

/* Card */
.login-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 820px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* Left part */
.login-card__left {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 52px 40px 52px 44px;
}

.login-card__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 18px;
}

.login-card__logo {
    height: 48px;
    display: block;
}

.login-card__description {
    font-size: 13.5px;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin: 0;
    max-width: 300px;
    text-align: left;
}

/* Vertical divider */
.login-card__divider {
    width: 1px;
    background: var(--color-border);
    align-self: stretch;
}

/* Right part */
.login-card__right {
    flex: 1;
    padding: 52px 44px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.login-card__title {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 32px;
    text-align: center;
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-form .field-group {
    margin-bottom: 0;
}

.login-form .field-label {
    font-size: 12px;
    margin-bottom: 4px;
}

.login-form .field-input {
    height: 46px;
    font-size: 15px;
    padding: 0 14px;
    border-radius: 8px;
}

.login-form__submit {
    width: 100%;
    height: 46px;
    margin-top: 6px;
    font-size: 16px;
    border-radius: 8px;
}

/* Error message */
.login-error {
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--color-danger-bg);
    border: 1px solid var(--color-danger);
    color: var(--color-danger);
    font-size: 14px;
    text-align: center;
}

/* ===== Mobile (<=700px) ===== */
@media (max-width: 700px) {
    .login-wrapper {
        padding-top: min(8vh, 60px);
    }

    .login-card {
        flex-direction: column;
        max-width: 420px;
    }

    /* Divider hidden on mobile */
    .login-card__divider {
        display: none;
    }

    /* Left part becomes top strip with just the logo */
    .login-card__left {
        padding: 32px 28px 16px;
        justify-content: center;
        align-items: center;
    }

    .login-card__brand {
        align-items: center;
    }

    .login-card__description {
        display: none;
    }

    /* Right part stacks below */
    .login-card__right {
        padding: 20px 28px 36px;
    }
}

/* ===== SSO Section ===== */
.sso-section {
    margin-top: 20px;
}

.sso-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.sso-divider__line {
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.sso-divider__text {
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sso-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 8px;
    background: rgb(63, 80, 180);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}

.sso-btn:hover {
    background: rgb(50, 64, 155);
}

.sso-btn__icon {
    height: 22px;
    width: auto;
}
