@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;
    --warning: #f59e0b;
    --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;
}

/* ===== Signup Wrapper ===== */
.signup-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;
}

/* ===== 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: 30px;
}

/* Benefits List */
.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.benefit-item svg {
    flex-shrink: 0;
    color: #22c55e;
}

.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
}

.divider span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.btn-login {
    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-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-login svg {
    transition: transform 0.3s ease;
}

.btn-login: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;
    overflow-y: auto;
    height: 646px;
}

.form-container {
    max-width: 450px;
    height: 900px;
}

.form-header {
    margin-bottom: 35px;
}

.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 ===== */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.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 input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--primary-purple);
}

.input-wrapper input::placeholder {
    color: #94a3b8;
}

/* Password Toggle */
.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--primary-purple);
}

/* Error Message */
.error-message {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 4px;
    display: none;
}

.input-group.error .error-message {
    display: block;
}

/* Form Options */
.form-options {
    margin: -4px 0 4px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.5;
    padding: 1.5rem;
    margin: 1.5rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary-purple);
    flex-shrink: 0;
}

.terms-link {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 500;
}

.terms-link:hover {
    text-decoration: underline;
}

/* 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);
    margin-top: 20px;
}

.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:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-submit svg {
    transition: transform 0.3s ease;
}

.btn-submit:hover svg {
    transform: translateX(3px);
}

/* Social Signup */
.social-signup {
    margin-top: 28px;
}

.divider-line {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}

.divider-line::before,
.divider-line::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider-line span {
    padding: 0 16px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-social:hover {
    border-color: var(--primary-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-google {
    color: #4285F4;
}

.btn-facebook {
    color: #1877F2;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
    .signup-wrapper {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .welcome-panel {
        padding: 40px 30px;
    }

    .welcome-content h2 {
        font-size: 1.5rem;
    }

    .welcome-icon {
        width: 80px;
        height: 80px;
    }

    .form-panel {
        padding: 40px 30px;
        max-height: none;
    }
}

@media (max-width: 640px) {
    .main-container {
        padding: 100px 10px 20px;
    }

    .back-button span {
        display: none;
    }

    .back-button {
        padding: 0.75rem;
    }

    .form-panel {
        padding: 30px 20px;
    }

    .welcome-panel {
        padding: 30px 20px;
    }

    .form-header h1 {
        font-size: 1.6rem;
    }

    .social-buttons {
        grid-template-columns: 1fr;
    }

    .btn-social span {
        font-size: 0.85rem;
    }

    .benefits-list {
        gap: 12px;
    }

    .benefit-item {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .input-wrapper input {
        padding: 12px 12px 12px 44px;
        font-size: 0.95rem;
    }

    .btn-submit {
        padding: 14px;
        font-size: 1rem;
    }

    .form-header h1 {
        font-size: 1.4rem;
    }
}

/* ===== Loading State ===== */
.btn-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-submit.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Error States ===== */
.input-wrapper.error input {
    border-color: var(--error);
}

.input-wrapper.success input {
    border-color: var(--success);
}
