@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-purple: #6a3ea7;
    --secondary-purple: #4B2E83;
    --accent-purple: #8b5cf6;
    --light-purple: #f3dfff;
    --dark-purple: #3d1f6b;
    --white: #ffffff;
    --off-white: #FFF7FF;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --success: #22c55e;
    --error: #ef4444;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background-image: url(../Imagens/Imagens\ Gerais/Imagem4K.png);
    background-size: cover;
    background-repeat: no-repeat;
    padding-top: 90px;
}

/* ===== Animated Background ===== */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    animation: float 20s infinite ease-in-out;
}

.circle-1 { width: 300px; height: 300px; top: 10%; left: 10%; animation-delay: 0s; }
.circle-2 { width: 200px; height: 200px; top: 60%; left: 70%; animation-delay: 2s; }
.circle-3 { width: 400px; height: 400px; top: 40%; left: 30%; animation-delay: 4s; }
.circle-4 { width: 150px; height: 150px; top: 20%; right: 15%; animation-delay: 6s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    50% { transform: translate(50px, 50px) scale(1.1); opacity: 0.5; }
}

/* ===== Header ===== */
/* Estilos compartilhados em css/header-shared.css */

.logo-icon img { height: 42px; }

/* ===== Back Button ===== */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    animation: slideInRight 0.6s ease;
}

.back-button:hover {
    background-color: white;
    color: var(--primary-purple);
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.back-button svg { transition: transform 0.3s ease; }
.back-button:hover svg { transform: translateX(-3px); }

/* ===== Main Container ===== */
.main-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
    position: relative;
    z-index: 1;
}

/* ===== Login Wrapper ===== */
.login-wrapper {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Welcome Panel ===== */
.welcome-panel {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    padding: 60px 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.welcome-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 50%;
}

.welcome-content { position: relative; z-index: 2; }

.welcome-icon {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.welcome-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.welcome-content p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 40px;
}

.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
}

.divider span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.btn-cadastro {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--primary-purple);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: fit-content;
}

.btn-cadastro:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-cadastro svg { transition: transform 0.3s ease; }
.btn-cadastro:hover svg { transform: translateX(5px); }

.decoration-dots {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    gap: 10px;
}

.decoration-dots span {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: block;
    animation: pulse 2s infinite;
}

.decoration-dots span:nth-child(2) { animation-delay: 0.3s; }
.decoration-dots span:nth-child(3) { animation-delay: 0.6s; }

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ===== Form Panel ===== */
.form-panel {
    padding: 60px 50px;
    background: white;
}

.form-container { max-width: 450px; }

/* ===== Step Indicator ===== */
.step-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 36px;
    gap: 0;
}

.step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--border-color);
    color: var(--text-light);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.step.active {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    color: white;
    box-shadow: 0 4px 12px rgba(106, 62, 167, 0.35);
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border-color);
}

/* ===== Form Header ===== */
.form-header { margin-bottom: 32px; }

.form-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.form-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===== Form Styles ===== */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-light);
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    transition: all 0.3s ease;
    background: white;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 4px rgba(106, 62, 167, 0.1);
}

.input-wrapper:focus-within .input-icon { color: var(--primary-purple); }

.input-wrapper input::placeholder { color: #94a3b8; }

/* ===== Info Box ===== */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--light-purple);
    border: 1px solid rgba(106, 62, 167, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--primary-purple);
    font-size: 0.875rem;
    line-height: 1.5;
}

.info-box svg { flex-shrink: 0; margin-top: 1px; }
.info-box strong { font-weight: 600; }

/* ===== Submit Button ===== */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(106, 62, 167, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(106, 62, 167, 0.4);
}

.btn-submit:active { transform: translateY(0); }

.btn-submit svg { transition: transform 0.3s ease; }
.btn-submit:hover svg { transform: translateX(4px); }

.btn-submit.loading {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
}

/* ===== Mensagens ===== */
.erro {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--error);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sucesso {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== Resend Note ===== */
.resend-note {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    line-height: 1.6;
}

.link-reenviar {
    color: var(--primary-purple);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-reenviar:hover {
    color: var(--secondary-purple);
    text-decoration: underline;
}

.link-reenviar.disabled {
    color: var(--text-light);
    pointer-events: none;
    text-decoration: none;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .login-wrapper {
        grid-template-columns: 1fr;
    }

    .welcome-panel {
        padding: 40px 30px;
    }

    .form-panel {
        padding: 40px 30px;
    }

    .form-header h1 {
        font-size: 1.6rem;
    }
}
