:root {
    --text-dark: #131419;
    --text-muted: #5f6675;
    --blue-active: #165ef8;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f3f7ff url("../../assets/icons/coi_common_ui_mobywatel_background.webp") center/cover no-repeat;
    box-sizing: border-box;
    touch-action: manipulation;
}

a {
    color: inherit;
    text-decoration: none;
}

.login {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: clamp(12px, 2vh, 24px) 20px clamp(8px, 1.5vh, 16px);
    box-sizing: border-box;
    overflow: hidden;
}

@supports (height: 100dvh) {
    .login {
        height: 100dvh;
    }
}

.login__header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    flex-shrink: 0;
    margin-top: 20px;
}

.login__logo-group {
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.login__logo-image {
    height: 40px;
    width: auto;
}

.login__intro {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 14px;
}

.login__title {
    font-size: 2.1rem;
    font-weight: 800;
    color: #131419;
    margin: 0;
}

.login__subtitle {
    font-size: 1.05rem;
    color: #5f6675;
    margin: 0;
}

.login__main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 24px 0 12px 0;
}

.login__form {
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 18px;
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.login__password-label {
    color: #5f6675;
    font-size: 0.92rem;
    font-weight: 500;
}

.login__password {
    position: relative;
    width: 100%;
}

.login__password-input {
    width: 100%;
    padding: 12px 48px 12px 16px;
    font-size: 1rem;
    border: 1.5px solid #cbd5e1;
    background-color: #ffffff;
    border-radius: 11px;
    color: #131419;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.login__password-input:focus {
    border-color: #165ef8;
    outline: none;
}

.login__eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background: transparent;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
}

.login__eye img {
    width: 22px;
    height: 22px;
}

.login__forgot {
    font-size: 0.9rem;
    font-weight: 600;
    color: #165ef8;
    margin-top: 4px;
}

.login__submit {
    width: 100%;
    background-color: #165ef8;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 12px 16px;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 0;
    box-sizing: border-box;
    text-align: center;
}

.login__submit:active {
    transform: scale(0.99);
}

.login__footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    padding-bottom: env(safe-area-inset-bottom, 2px);
}

.login__footerCard {
    width: 100%;
    background: transparent;
    border-radius: 0;
    padding: 2px 4px;
    box-sizing: border-box;
    box-shadow: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login__footerBannerImg {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 4px;
}

.login__version {
    font-size: 0.82rem;
    font-weight: 400;
    color: #718096;
    margin: 0;
    text-align: center;
}

.login__error {
    font-size: 13px;
    color: #b91c1c;
    margin-top: 4px;
}
.login__error.warn::before {
    content: "\26A0\FE0E";
    font-size: 1.2em;
    margin-right: 4px;
}
