@font-face {
    font-family: 'Gotham';
    src: url('../font/Gotham-Book.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('../font/Gotham-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('../font/Gotham-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #cfb6db;
    --purple: #8a4c9f;
    --icon-bg: #a165ba;
    --navy: #0d1e2e;
    --text: #ffffff;
    --muted: #8995a0;
    --line: rgba(255, 255, 255, 0.28);
    --btn: #a165ba;
    --btn-text: #ffffff;
    --radius: 28px;
    --font: 'Gotham', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    min-height: 100%;
    font-family: var(--font);
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    padding: 28px 16px;
}

.login-card {
    width: 100%;
    max-width: 980px;
    min-height: 540px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 5px solid #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(79, 39, 122, 0.18);
}

.brand-panel,
.form-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 48px 46px 28px;
}

.brand-panel {
    background: var(--purple);
    color: var(--text);
    align-items: center;
    justify-content: center;
    text-align: center;
}

.form-panel {
    background: var(--navy);
    color: var(--text);
    justify-content: center;
}

.logo-kuska {
    width: min(78%, 280px);
    height: auto;
    margin-bottom: 54px;
}

.values {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.value-item {
    width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.value-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon img {
    width: 32px;
    height: 32px;
}

.value-item span {
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--text);
}

.copy-brand {
    position: absolute;
    left: 24px;
    bottom: 18px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.78);
}

.form-heading { margin-bottom: 34px; }

.form-heading h1 {
    font-size: 30px;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.form-heading p {
    font-size: 15px;
    font-weight: 400;
    color: var(--muted);
}

.field { margin-bottom: 22px; }

.field label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text);
    margin-bottom: 8px;
}

.field-control {
    position: relative;
    border-bottom: 1px solid var(--line);
}

.field-control input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 17px;
    font-weight: 500;
    padding: 4px 36px 10px 0;
}

.field-control input::placeholder { color: rgba(255, 255, 255, 0.38); }

.toggle-pass {
    position: absolute;
    right: 0;
    top: 2px;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-pass img {
    width: 20px;
    height: 20px;
}

.form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0 28px;
    font-size: 14px;
    font-weight: 500;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    cursor: pointer;
    user-select: none;
}

.remember input {
    appearance: none;
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    margin: 0;
    border: 1.5px solid var(--purple);
    border-radius: 3px;
    background: #ffffff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.remember input:checked {
    background: var(--purple);
    border-color: var(--purple);
}

.remember input:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot {
    color: var(--purple);
    text-decoration: none;
}

.forgot:hover { opacity: 0.8; }

.btn-login {
    display: block;
    width: fit-content;
    min-width: 210px;
    margin: 8px auto 0;
    border: 0;
    border-radius: 12px;
    background: var(--btn);
    color: var(--btn-text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 42px;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease;
}

.btn-login:hover { transform: translateY(-1px); }
.btn-login:disabled { opacity: .7; cursor: wait; }

#resultado {
    display: none;
    margin-top: 14px;
    color: #ff8a8a;
    text-align: center;
    font-size: 13px;
}

.logo-group {
    position: absolute;
    right: 28px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.logo-group img {
    width: 22px;
    height: auto;
}

.logo-group span {
    font-size: 7px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--text);
}

@media (max-width: 820px) {
    body {
        padding: 0;
        background: var(--navy);
        align-items: stretch;
    }

    .login-card {
        min-height: 100vh;
        max-width: none;
        border: 0;
        border-radius: 0;
        grid-template-columns: 1fr;
        box-shadow: none;
    }

    .brand-panel {
        min-height: 42vh;
        padding: 48px 24px 42px;
    }

    .logo-kuska {
        width: 210px;
        margin-bottom: 36px;
    }

    .values { gap: 10px; }

    .copy-brand {
        left: 0;
        right: 0;
        text-align: center;
    }

    .form-panel {
        padding: 36px 28px 86px;
        justify-content: flex-start;
    }

    .logo-group {
        left: 0;
        right: 0;
        margin: 0 auto;
    }
}
