:root {
    --auth-accent: #ff8f1f;
    --auth-accent-2: #ff981f;
    --auth-title: #50557a;
    --auth-subtitle: #8b90ad;
    --auth-input-border: #ececf8;
    --auth-input-bg: #ffffff;
    --auth-input-text: #5f6483;
    --auth-card-bg: rgba(255, 255, 255, 0.83);
    --auth-form-bg: rgba(255, 255, 255, 0.45);
}

body.auth-page {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top, rgba(172, 197, 255, 0.50) 0%, rgba(230, 235, 255, 0.30) 40%, rgba(246, 244, 249, 0.95) 100%);
    overflow-x: hidden;
    position: relative;
    color: #4b4f6b;
}

body.auth-page::before,
body.auth-page::after {
    content: "";
    position: fixed;
    left: -10%;
    width: 120%;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

body.auth-page::before {
    height: 220px;
    bottom: 190px;
    background: rgba(255, 255, 255, 0.28);
    transform: rotate(-4deg);
}

body.auth-page::after {
    height: 170px;
    bottom: 110px;
    background: rgba(255, 255, 255, 0.18);
    transform: rotate(-2deg);
}

/* Variantes por rol */
body.auth-admin {
    --auth-accent: #ff8f1f;
    --auth-accent-2: #ff981f;
}

body.auth-seller {
    --auth-accent: #ff8f1f;
    --auth-accent-2: #ff981f;
}

body.auth-client {
    --auth-accent: #ff8f1f;
    --auth-accent-2: #ff981f;
}

.premium-login-wrapper {
    min-height: 100vh;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 16px 28px;
}

.premium-login-card {
    width: 100%;
    max-width: 440px;
    background: var(--auth-card-bg);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 22px;
    box-shadow: 0 18px 38px rgba(115, 120, 170, 0.13);
    padding: 20px 18px 16px;
}

.premium-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.premium-logo {
    max-width: 250px;
    width: 100%;
    height: auto;
}

.premium-title {
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    color: var(--auth-title);
    margin: 0 0 3px;
}

.premium-subtitle {
    text-align: center;
    font-size: 13px;
    color: var(--auth-subtitle);
    margin: 0 0 16px;
}

.premium-form-box {
    max-width: 100%;
    margin: 0 auto;
    background: var(--auth-form-bg);
    border: 1px solid #e8e9f6;
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(176, 181, 219, 0.12);
    padding: 14px 14px 10px;
}

.premium-field + .premium-field,
.premium-field-spaced {
    margin-top: 16px;
}

.premium-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #676d8d;
    margin-bottom: 7px;
    line-height: 1.2;
}

.premium-label span {
    display: inline-block;
}

.premium-icon {
    width: 19px;
    height: 19px;
    object-fit: contain;
    flex: 0 0 19px;
}

.premium-input {
    display: block;
    width: 100%;
    height: 46px;
    border-radius: 12px;
    border: 1.5px solid var(--auth-input-border);
    background: var(--auth-input-bg);
    font-size: 14px;
    color: var(--auth-input-text);
    padding: 0 14px;
    box-shadow: none;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.premium-input::placeholder {
    color: #9aa1bd;
}

.premium-input:hover {
    border-color: #d9dced;
}

.premium-input:focus,
.premium-input:focus-visible {
    border-color: var(--auth-accent);
    background: #fffdf9;
    box-shadow: 0 0 0 4px rgba(255, 143, 31, 0.12);
    outline: none;
}

.premium-input:-webkit-autofill,
.premium-input:-webkit-autofill:hover,
.premium-input:-webkit-autofill:focus,
.premium-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: var(--auth-input-text) !important;
    border: 1.5px solid var(--auth-input-border) !important;
    transition: background-color 9999s ease-in-out 0s;
}

.premium-error {
    margin-top: 6px;
    font-size: 13px;
    color: #dc3545;
}

.premium-remember {
    margin: 12px 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #707694;
    font-size: 12px;
}

.premium-remember input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--auth-accent);
    cursor: pointer;
    flex: 0 0 15px;
}

.premium-remember label {
    margin: 0;
    cursor: pointer;
    line-height: 1;
}

.premium-button {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 11px;
    background: linear-gradient(90deg, var(--auth-accent) 0%, var(--auth-accent-2) 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(255, 144, 33, 0.22);
    transition: all 0.2s ease;
    cursor: pointer;
}

.premium-button:hover {
    transform: translateY(-1px);
    color: #ffffff;
    filter: brightness(0.98);
}

.premium-help {
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    color: #757b99;
}

.premium-help a {
    color: #757b99;
    text-decoration: none;
}

.premium-help a:hover {
    color: var(--auth-accent);
}

.premium-feature-grid {
    width: 100%;
    max-width: 620px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.premium-feature-card {
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(236, 236, 248, 0.95);
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(181, 185, 217, 0.10);
    padding: 14px 10px;
    text-align: center;
    min-height: 92px;
}

.premium-feature-card img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    margin-bottom: 8px;
}

.premium-feature-card h5 {
    font-size: 13px;
    font-weight: 500;
    color: #576081;
    margin: 0;
}

.premium-footer-note {
    width: 100%;
    max-width: 620px;
    margin-top: 12px;
    text-align: left;
    color: #8d92ac;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.premium-footer-note img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

@media (max-width: 991px) {
    .premium-feature-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
    }

    .premium-footer-note {
        max-width: 440px;
    }
}

@media (max-width: 576px) {
    .premium-login-wrapper {
        padding: 14px 10px 22px;
    }

    .premium-login-card {
        padding: 18px 12px 14px;
        border-radius: 18px;
    }

    .premium-logo {
        max-width: 200px;
    }

    .premium-title {
        font-size: 18px;
    }

    .premium-subtitle {
        font-size: 12px;
    }

    .premium-form-box {
        padding: 12px 10px 8px;
    }

    .premium-label {
        font-size: 13px;
    }

    .premium-input {
        height: 42px;
        font-size: 13px;
    }

    .premium-button {
        height: 42px;
        font-size: 15px;
    }
}


