﻿:root {
    --auth-bg-start: #060b1b;
    --auth-bg-end: #101b37;
    --auth-accent: #7a5cff;
    --auth-accent-secondary: #3fbfff;
    --auth-text-primary: #f5f7ff;
    --auth-text-secondary: rgba(245, 247, 255, 0.68);
    --auth-text-muted: rgba(245, 247, 255, 0.48);
    --auth-card-bg: rgba(7, 13, 29, 0.85);
    --auth-card-border: rgba(122, 92, 255, 0.35);
    --auth-input-bg: rgba(10, 18, 39, 0.8);
    --auth-input-border: rgba(122, 92, 255, 0.28);
    --auth-input-border-focus: rgba(122, 92, 255, 0.75);
    --auth-shadow: 0 28px 80px rgba(5, 10, 25, 0.5);
    --auth-radius-xl: 26px;
    --auth-radius-lg: 18px;
    --auth-transition: all 0.25s ease;
}

body {
    background: radial-gradient(120% 120% at 50% -10%, #1f2a4b 0%, var(--auth-bg-end) 38%, var(--auth-bg-start) 100%);
    color: var(--auth-text-primary);
    font-family: "Poppins", "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    position: relative;
}

body::before,
body::after {
    content: "";
    position: fixed;
    width: 32rem;
    height: 32rem;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(122, 92, 255, 0.25) 0%, rgba(122, 92, 255, 0) 70%);
    filter: blur(20px);
    z-index: 0;
    opacity: 0.9;
}

body::before {
    top: -10rem;
    right: -6rem;
}

body::after {
    bottom: -14rem;
    left: -8rem;
    background: radial-gradient(circle at center, rgba(63, 191, 255, 0.18) 0%, rgba(63, 191, 255, 0) 72%);
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3rem);
    position: relative;
    z-index: 1;
}

.auth-card {
    width: 100%;
    background: linear-gradient(135deg, rgba(11, 18, 39, 0.92) 0%, rgba(7, 13, 27, 0.82) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--auth-radius-xl);
    box-shadow: var(--auth-shadow);
    backdrop-filter: blur(18px);
    padding: clamp(2.5rem, 6vw, 3.5rem) clamp(1.75rem, 5vw, 3rem);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(140deg, rgba(122, 92, 255, 0.2) 0%, rgba(63, 191, 255, 0.1) 35%, rgba(255, 255, 255, 0) 65%);
    opacity: 0.4;
    pointer-events: none;
}

.auth-card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--auth-radius-xl) - 1px);
    border: 1px solid rgba(255, 255, 255, 0.02);
    pointer-events: none;
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-logo img {
    max-width: 120px;
    width: clamp(96px, 20vw, 124px);
    filter: drop-shadow(0 8px 20px rgba(122, 92, 255, 0.3));
}

.auth-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.79rem;
    color: var(--auth-text-muted);
    text-align: center;
    margin-bottom: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-title {
    font-size: clamp(1.65rem, 4vw, 2.1rem);
    font-weight: 600;
    text-align: center;
    color: var(--auth-text-primary);
    margin-bottom: 0.75rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--auth-text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.auth-field + .auth-field {
    margin-top: -0.2rem;
}

.auth-form > .auth-meta {
    margin-top: 0.35rem;
}

.auth-form > .auth-actions {
    margin-top: 0.5rem;
}

.auth-input-group {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--auth-radius-lg);
    background: var(--auth-input-bg);
    border: 1px solid var(--auth-input-border);
    transition: var(--auth-transition);
    backdrop-filter: blur(10px);
}

.auth-input-group:focus-within {
    border-color: var(--auth-input-border-focus);
    background: rgba(122, 92, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(122, 92, 255, 0.15);
}

.auth-input-icon {
    color: var(--auth-text-muted);
    font-size: 1.05rem;
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
}

.auth-input-group input,
.auth-input-group abp-input input {
    flex: 1;
    border: none;
    background: transparent !important;
    color: var(--auth-text-primary);
    font-size: 1rem;
    padding: 0.6rem 0;
    outline: none;
    box-shadow: none;
}

.auth-input-group input::placeholder {
    color: var(--auth-text-muted);
}

.auth-input-group input:focus {
    outline: none;
    box-shadow: none;
}

.auth-form .text-danger,
.auth-form span[data-valmsg-for] {
    font-size: 0.85rem;
    margin-top: -0.75rem;
    display: block;
    color: #ff8a8a;
}

.auth-form .validation-summary-valid,
.auth-form .validation-summary-errors {
    margin: -0.5rem 0 0;
}

.auth-form .validation-summary-errors ul {
    margin-bottom: 0;
    padding-left: 1rem;
}

.auth-form .validation-summary-errors li {
    color: #ffb1b1;
}

.auth-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    color: var(--auth-text-secondary);
    font-size: 0.95rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0;
}

.form-check-input {
    background-color: rgba(10, 18, 39, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--auth-accent);
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px rgba(122, 92, 255, 0.2);
}

.form-check-label {
    color: var(--auth-text-secondary);
    cursor: pointer;
}

.auth-link {
    color: var(--auth-accent-secondary);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: var(--auth-transition);
}

.auth-link:hover,
.auth-link:focus {
    color: #8dd6ff;
    text-decoration: none;
}

.auth-primary-btn {
    border: none;
    border-radius: var(--auth-radius-lg);
    padding: 0.85rem;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: linear-gradient(120deg, var(--auth-accent) 0%, rgba(75, 110, 255, 0.9) 48%, var(--auth-accent-secondary) 100%);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(58, 102, 255, 0.35);
    transition: var(--auth-transition);
}

.auth-primary-btn:hover,
.auth-primary-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(58, 102, 255, 0.45);
    color: #ffffff;
}

.auth-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border-radius: var(--auth-radius-lg);
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--auth-text-primary);
    background: transparent;
    transition: var(--auth-transition);
    text-decoration: none;
}

.auth-secondary-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-1px);
}

.auth-footer {
    margin-top: 1.75rem;
    text-align: center;
    color: var(--auth-text-muted);
    font-size: 0.85rem;
}

.alert {
    border-radius: var(--auth-radius-lg);
    background-color: rgba(255, 137, 145, 0.12);
    border: 1px solid rgba(255, 137, 145, 0.3);
    color: #ffb1b1;
}

@media (max-width: 992px) {
    .auth-card {
        padding: clamp(2.25rem, 6vw, 3rem) clamp(1.25rem, 5vw, 2.25rem);
    }
}

@media (max-width: 576px) {
    body::before,
    body::after {
        width: 24rem;
        height: 24rem;
    }

    .auth-wrapper {
        padding: 2rem 1.25rem;
    }

    .auth-card {
        border-radius: 20px;
    }
}
/* Força o estilo correto nos inputs com autofill - VERSÃO ATUALIZADA */
.auth-input-group input:-webkit-autofill,
.auth-input-group input:-webkit-autofill:hover,
.auth-input-group input:-webkit-autofill:focus,
.auth-input-group input:-webkit-autofill:active,
.auth-input-group abp-input input:-webkit-autofill,
.auth-input-group abp-input input:-webkit-autofill:hover,
.auth-input-group abp-input input:-webkit-autofill:focus,
.auth-input-group abp-input input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--auth-text-primary) !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--auth-input-bg) inset !important;
    box-shadow: 0 0 0px 1000px var(--auth-input-bg) inset !important;
    background-color: transparent !important;
    caret-color: var(--auth-text-primary);
    transition: background-color 5000s ease-in-out 0s;
    font-size: 1rem !important;
    font-family: "Poppins", "Segoe UI", Roboto, sans-serif !important;
    font-weight: 400 !important;
    line-height: normal !important;
}

.auth-input-group input,
.auth-input-group abp-input input {
    flex: 1;
    border: none;
    background: transparent !important;
    color: var(--auth-text-primary) !important; /* adicione !important */
    font-size: 1rem !important; /* adicione !important */
    padding: 0.6rem 0;
    outline: none;
    box-shadow: none;
}