@font-face {
    font-family: Kanit;
    src: url('../../mpdf60/ttfonts/Kanit-Regular.ttf');
}

@font-face {
    font-family: Kanit;
    src: url('../../mpdf60/ttfonts/Kanit-SemiBold.ttf');
    font-weight: 600;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Kanit, "Noto Sans Thai", sans-serif;
    background: #f4f5f7;
    color: #171717;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-shell {
    width: min(920px, 100%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12), 0 4px 16px rgba(0, 0, 0, 0.04);
}

.auth-brand {
    padding: 40px 36px;
    background: #1f2937;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.auth-brand-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    width: fit-content;
    backdrop-filter: blur(4px);
}

.auth-brand img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.auth-brand h1 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #ffffff;
    line-height: 1.3;
}

.auth-brand-subtitle {
    font-size: 13.5px;
    opacity: 0.95;
    margin: 0 0 24px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
}

.auth-brand-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
}

.brand-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 12px 14px;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.brand-feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateX(3px);
}

.brand-feature-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-top: 2px;
}

.brand-feature-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-feature-text strong {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
}

.brand-feature-text span {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.3;
}

.auth-card {
    padding: 48px;
}

.eyebrow {
    color: #e30613;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.auth-card h2 {
    font-size: 26px;
    margin: 8px 0;
}

.auth-card > p {
    color: #6f737b;
    margin: 0 0 24px;
}

.auth-card form {
    display: grid;
    gap: 16px;
}

label {
    font-size: 14px;
    font-weight: 600;
    display: grid;
    gap: 7px;
}

input {
    height: 46px;
    border: 1px solid #d8e0e8;
    border-radius: 9px;
    padding: 0 12px;
    font: inherit;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

input:focus {
    border-color: #e30613;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.12);
}

button[type="submit"] {
    height: 46px;
    border: 0;
    border-radius: 9px;
    background: #e30613;
    color: #ffffff;
    font: 600 15px Kanit, sans-serif;
    cursor: pointer;
    transition: background 0.16s ease, transform 0.16s ease;
}

button[type="submit"]:hover {
    background: #b70710;
    transform: translateY(-1px);
}

.alert, .success {
    padding: 11px 13px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert {
    background: #fff1f2;
    color: #a20d1b;
}

.success {
    background: #eafaf4;
    color: #087451;
}

.auth-calc-wrap {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5eaf0;
}

.btn-calc-auth {
    width: 100%;
    height: 44px;
    border: 1px solid #e30613;
    background: #fff0f1;
    color: #e30613;
    border-radius: 9px;
    font: 600 14px Kanit, sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.btn-calc-auth:hover {
    background: #e30613;
    color: #ffffff;
    transform: translateY(-1px);
}

@media (max-width: 700px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }
    .auth-brand {
        padding: 28px;
    }
    .auth-brand img {
        width: 90px;
        height: 90px;
    }
    .auth-brand h1 {
        font-size: 23px;
        margin: 12px 0 4px;
    }
    .auth-card {
        padding: 28px;
    }
}
