/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-brown: #8B4513;
    --primary-brown-dark: #6B3410;
    --primary-brown-light: #A0522D;
    --accent-gold: #DAA520;
    --accent-gold-light: #F4E4BC;
    --neutral-white: #FFFFFF;
    --neutral-gray-50: #FAFAFA;
    --neutral-gray-100: #F5F5F5;
    --neutral-gray-200: #E5E5E5;
    --neutral-gray-800: #262626;
    --error: #DC2626;
    --error-light: #FEE2E2;
    --success: #16A34A;
    --success-light: #DCFCE7;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--neutral-gray-50);
    color: var(--neutral-gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === LAYOUT PRINCIPAL === */
.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    background-color: var(--neutral-white);
}

/* === PAINEL ESQUERDO - INFORMAÇÕES === */
.info-panel {
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--primary-brown-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.info-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(218, 165, 32, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.info-content {
    position: relative;
    z-index: 1;
    max-width: 480px;
    color: var(--neutral-white);
}

.brand-section {
    margin-bottom: 3rem;
    text-align: center;
}

.brand-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.brand-description {
    font-size: 1.125rem;
    opacity: 0.9;
    line-height: 1.7;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(5px);
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--accent-gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary-brown-dark);
    font-size: 1.25rem;
}

.feature-text h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-text p {
    opacity: 0.85;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* === PAINEL DIREITO - FORMULÁRIO === */
.forms-panel {
    background-color: var(--neutral-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.form-wrapper {
    width: 100%;
    max-width: 440px;
}

.mobile-logo {
    display: none;
    text-align: center;
    margin-bottom: 2rem;
}

.mobile-brand-logo {
    max-width: 80px;
    height: auto;
}

.form-title {
    text-align: center;
    margin-bottom: 2rem;
}

.form-title h2 {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--neutral-gray-800);
    margin-bottom: 0.5rem;
}

.form-title p {
    color: #6B7280;
    font-size: 0.95rem;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-brown), var(--primary-brown-light));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* === MENSAGENS === */
.messages {
    margin-bottom: 1.5rem;
}

.alert {
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert i {
    font-size: 1.1rem;
}

.alert-error {
    background: var(--error-light);
    border: 1px solid #FCA5A5;
    color: #991B1B;
}

.alert-success {
    background: var(--success-light);
    border: 1px solid #86EFAC;
    color: #065F46;
}

/* === CAMPOS DO FORMULÁRIO === */
.form-fields {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.field-group {
    display: flex;
    flex-direction: column;
}

.field-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neutral-gray-800);
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid var(--neutral-gray-200);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: var(--neutral-gray-50);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-brown);
    background: var(--neutral-white);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.field-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 1rem;
    pointer-events: none;
}

/* === BOTÕES === */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-brown), var(--primary-brown-light));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 69, 19, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* === LINKS === */
.form-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.form-footer a {
    color: var(--primary-brown);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.form-footer a:hover {
    color: var(--primary-brown-dark);
    text-decoration: underline;
}

/* === RESPONSIVO === */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .info-panel {
        display: none;
    }

    .mobile-logo {
        display: block;
    }
}

@media (max-width: 480px) {
    .forms-panel {
        padding: 1.5rem;
    }

    .form-title h2 {
        font-size: 1.5rem;
    }

    .brand-title {
        font-size: 2rem;
    }

    .feature-item {
        padding: 1rem;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
