/**
 * Estilos para Telas de Autenticação
 * Login, Recuperar Senha, etc.
 */

body {
    overflow: hidden;
}

.auth-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* =============================================
   LADO ESQUERDO - BRANDING
   ============================================= */
.auth-branding {
    flex: 1;
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.auth-branding::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.auth-logo {
    width: 100%;
    max-width: 500px;
    height: auto;
    max-height: 60vh;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

/* ... existing styles ... */

.auth-form-icone {
    width: auto;
    max-width: 150px;
    height: auto;
    max-height: 15vh;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-form-icone img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.auth-titulo {
    color: var(--cor-texto-branco);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.auth-subtitulo {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    text-align: center;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

.auth-info {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    z-index: 1;
}

.auth-info p {
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-info i {
    font-size: 1rem;
}

/* =============================================
   LADO DIREITO - FORMULÁRIO
   ============================================= */
.auth-form-container {
    flex: 1;
    background: var(--cor-fundo-card);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.auth-form-box {
    width: 100%;
    max-width: 450px;
}

.auth-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form-icone {
    width: auto;
    max-width: 150px;
    height: auto;
    max-height: 15vh;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-form-icone img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
}

.auth-form-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.auth-form-header p {
    color: var(--cor-texto-claro);
    font-size: 0.875rem;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.auth-input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.auth-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cor-texto-claro);
    font-size: 1.125rem;
}

.auth-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid #E5E7EB;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transicao-rapida);
    background: var(--cor-fundo);
}

.auth-input:focus {
    outline: none;
    border-color: var(--cor-primaria);
    background: var(--cor-fundo-card);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.auth-input::placeholder {
    color: var(--cor-texto-muito-claro);
}

.auth-input-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--cor-texto-claro);
    cursor: pointer;
    font-size: 1.125rem;
    padding: 0.25rem;
}

.auth-input-toggle:hover {
    color: var(--cor-primaria);
}

.auth-checkbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.auth-checkbox label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--cor-texto);
    cursor: pointer;
}

.auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.auth-link {
    font-size: 0.875rem;
    color: var(--cor-primaria);
    font-weight: 500;
}

.auth-link:hover {
    color: var(--cor-secundaria);
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    padding: 1rem;
    background: var(--cor-primaria);
    color: var(--cor-texto-branco);
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transicao-rapida);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-btn:hover {
    background: #6D28D9;
    transform: translateY(-2px);
    box-shadow: var(--sombra-lg);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #E5E7EB;
}

.auth-divider span {
    background: var(--cor-fundo-card);
    padding: 0 1rem;
    color: var(--cor-texto-claro);
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

.auth-footer {
    text-align: center;
    color: var(--cor-texto-claro);
    font-size: 0.875rem;
}

.auth-footer a {
    color: var(--cor-primaria);
    font-weight: 500;
}

.auth-alert {
    padding: 0.875rem 1rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-alert-erro {
    background: #FEE2E2;
    color: #991B1B;
    border-left: 4px solid var(--cor-erro);
}

.auth-alert-sucesso {
    background: #D1FAE5;
    color: #065F46;
    border-left: 4px solid var(--cor-sucesso);
}

.auth-alert-info {
    background: #DBEAFE;
    color: #1E40AF;
    border-left: 4px solid var(--cor-info);
}

/* =============================================
   VARIAÇÃO - ÁREA DO CLIENTE
   ============================================= */
.auth-branding.cliente {
    background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
}

.auth-branding.cliente::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

/* =============================================
   RESPONSIVIDADE
   ============================================= */
@media (max-width: 968px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-branding {
        min-height: 40vh;
        padding: 2rem;
    }

    .auth-logo {
        width: 100px;
        height: 100px;
    }

    .auth-titulo {
        font-size: 2rem;
    }

    .auth-info {
        position: static;
        margin-top: 2rem;
        text-align: center;
    }

    .auth-form-container {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .auth-branding {
        min-height: 30vh;
    }

    .auth-titulo {
        font-size: 1.5rem;
    }

    .auth-form-container {
        padding: 1.5rem 1rem;
    }
}