/* ===========================
   MPS Easy — Login (Clean White)
   =========================== */

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --purple: #7B2D8E;
    --purple-dark: #5A1D6B;
    --purple-deeper: #3A1050;
    --yellow: #F5C518;
    --cyan: #00BCD4;
    --cyan-dark: #0097A7;
    --white: #FFFFFF;
    --off-white: #F7F8FC;
    --border: #E0E4EF;
    --border-focus: #7B2D8E;
    --text-h: #1A1230;
    --text-body: #4A4A6A;
    --text-muted: #9B9BBB;
    --text-white: #FFFFFF;
    --text-white70: rgba(255, 255, 255, .72);
    --radius-card: 24px;
    --radius-input: 10px;
    --radius-btn: 50px;
    --shadow-card: 0 24px 64px rgba(90, 29, 107, .18), 0 4px 16px rgba(0, 0, 0, .06);
    --shadow-hover: 0 2px 10px rgba(123, 45, 142, .15);
    --transition: .25s cubic-bezier(.4, 0, .2, 1);
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

form {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--off-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Subtle light background pattern */
    background-image:
        radial-gradient(circle at 15% 20%, rgba(123, 45, 142, .06) 0%, transparent 50%),
        radial-gradient(circle at 85% 80%, rgba(245, 197, 24, .07) 0%, transparent 50%);
}

/* ===========================
   SITE HEADER
   =========================== */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-logo img {
    height: 36px;
    display: block;
}

.header-logo {
    text-decoration: none;
}

.logo-fb {
    display: none;
    align-items: center;
    font-weight: 800;
    font-size: 1.3rem;
    gap: 2px;
}

.fb-mps {
    color: var(--purple);
}

.fb-easy {
    color: var(--text-h);
}

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 600;
    color: var(--purple);
    padding: 8px 18px;
    border: 1.5px solid var(--purple);
    border-radius: var(--radius-btn);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-home:hover {
    background: var(--purple);
    color: var(--white);
}

.btn-home .material-icons-outlined {
    font-size: 17px;
}



/* ===== Card ===== */
.page-wrapper {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
}

.login-card {
    display: flex;
    width: 100%;
    max-width: 960px;
    min-height: 600px;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    animation: cardIn .7s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(28px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================================
   LEFT — Pure White Form Panel
   ============================================================ */
.form-panel {
    flex: 0 0 48%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 44px;
    position: relative;
}

.form-panel-inner {
    width: 100%;
    max-width: 360px;
    animation: slideUp .6s cubic-bezier(.16, 1, .3, 1) .15s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Left Contact Info */
.left-contact-block {
    margin-top: 32px;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(123, 45, 142, .04) 0%, rgba(245, 197, 24, .04) 100%);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.left-contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .82rem;
    color: var(--text-body);
    font-weight: 500;
    padding: 8px 0;
}

.left-contact-row+.left-contact-row {
    border-top: 1px solid var(--border);
}

.left-contact-row .material-icons-outlined {
    font-size: 18px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(123, 45, 142, .08);
    color: var(--purple);
    border-radius: 8px;
    flex-shrink: 0;
}

.left-office-block {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.left-office-label {
    font-size: .80rem;
    color: var(--text-body);
    margin: 0;
}

.left-office-label strong {
    color: var(--text-h);
}

.left-office-closed {
    font-size: .72rem;
    font-weight: 700;
    color: #E53935;
    background: rgba(229, 57, 53, .08);
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: .02em;
}

/* Header */
.form-header {
    text-align: left;
    margin-bottom: 28px;
}

.form-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-h);
    margin-bottom: 4px;
    position: relative;
    display: inline-block;
}

.form-header h1::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--purple);
    border-radius: 2px;
}

.form-header p {
    font-size: .875rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ===== Fields ===== */
#loginForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#divLogin {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-group label {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-body);
    letter-spacing: .02em;
}

.req {
    color: var(--purple);
    font-weight: 700;
}

.field-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-input);
    background: var(--white);
    transition: var(--transition);
    overflow: hidden;
}

.field-wrap:hover {
    border-color: #C5B0D8;
}

/* Active (focused) */
.field-group.active .field-wrap {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(123, 45, 142, .10);
}

/* Error */
.field-group.error .field-wrap {
    border-color: #E53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, .08);
}

.field-error {
    font-size: .72rem;
    color: #E53935;
    font-weight: 500;
    display: none;
}

.field-group.error .field-error {
    display: block;
}

.field-icon {
    position: absolute;
    left: 12px;
    font-size: 18px;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
}

.field-group.active .field-icon {
    color: var(--purple);
}

.field-wrap input {
    flex: 1;
    padding: 14px 44px 14px 40px;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: .9rem;
    color: var(--text-h);
    background: transparent;
}

.field-wrap input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

/* Eye button */
.eye-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.eye-btn:hover {
    color: var(--purple);
}

.eye-btn .material-icons-outlined {
    font-size: 18px;
}

/* ===== Login Button ===== */
.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--yellow) 0%, #FFD740 100%);
    color: var(--text-h);
    border: none;
    border-radius: var(--radius-btn);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(245, 197, 24, .40);
    letter-spacing: .02em;
    margin-top: 4px;
}

.btn-login::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .3) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform .55s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(245, 197, 24, .5);
}

.btn-login:hover::after {
    transform: translateX(100%);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login .material-icons-outlined {
    font-size: 20px;
    transition: transform .2s;
}

.btn-login:hover .material-icons-outlined {
    transform: translateX(4px);
}

/* Loading */
.btn-login.loading {
    pointer-events: none;
    opacity: .8;
}

.btn-login.loading .btn-label,
.btn-login.loading .material-icons-outlined {
    visibility: hidden;
}

.btn-login.loading::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(26, 18, 48, .15);
    border-top-color: var(--text-h);
    border-radius: 50%;
    animation: spin .65s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Extra Links */
.extra-links {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 2px;
}

.link-chip {
    flex: 1;
    text-align: center;
    text-decoration: none;
    padding: 9px 12px;
    border-radius: var(--radius-btn);
    font-size: .8rem;
    font-weight: 600;
    transition: var(--transition);
    letter-spacing: .02em;
}

.chip-cyan {
    background: var(--purple);
    color: var(--white);
    box-shadow: 0 2px 10px rgba(123, 45, 142, .25);
}

.chip-cyan:hover {
    background: var(--purple-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(123, 45, 142, .35);
}

/* ============================================================
   RIGHT — Banner Image Slider Panel
   ============================================================ */
.brand-panel {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Radio dots - positioned ABOVE the image (overlaid on bottom area) */
.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.30);
    border-radius: 20px;
    backdrop-filter: blur(6px);
}

.slider-radio {
    display: none;
}

.dot-label {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.dot-label:hover {
    background: rgba(255, 255, 255, 0.7);
}

.slider-radio:checked + .dot-label {
    background: var(--yellow);
    border-color: var(--white);
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(245, 197, 24, 0.6);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    body {
        padding: 16px;
    }

    .login-card {
        flex-direction: column;
        max-width: 440px;
        min-height: unset;
    }

    .form-panel {
        flex: none;
        padding: 36px 28px;
    }

    .brand-panel {
        padding: 36px 28px;
    }

    .brand-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 420px) {
    .form-panel {
        padding: 28px 20px;
    }

    .extra-links {
        flex-direction: column;
    }

    .logo-img {
        max-width: 150px;
    }

    .form-header h1 {
        font-size: 1.45rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--purple);
    border-radius: 3px;
}

::selection {
    background: var(--purple);
    color: white;
}