* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --background: #ffffff;
    --foreground: #171717;
    --muted-foreground: #737373;
    --primary: #6d28d9;
    --primary-foreground: #ffffff;
    --border: #e5e5e5;
    --card: #fafafa;
    --secondary: #f5f3ff;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dark-mode {
    --background: #0a0a0a;
    --foreground: #ededed;
    --muted-foreground: #a3a3a3;
    --primary: #8b5cf6;
    --primary-foreground: #fafafa;
    --border: #262626;
    --card: #171717;
    --secondary: #1f1f1f;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

@media (min-width: 768px) {
    .container {
        flex-direction: row;
    }
}

.form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.form-container {
    width: 100%;
    max-width: 28rem;
}

.hero-section {
    display: none;
    position: relative;
    flex: 1;
    padding: 1rem;
}

@media (min-width: 768px) {
    .hero-section {
        display: block;
    }
}

.hero-image {
    position: absolute;
    inset: 1rem;
    border-radius: 1.5rem;
    background-size: cover;
    background-position: center;
    background-image: url('https://images.unsplash.com/photo-1642615835477-d303d7dc9ee9?w=2160&q=80');
    animation: slideRightIn 1s ease-out forwards;
    opacity: 0;
    filter: blur(10px);
    transform: translateX(30px);
}

.title {
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeSlideIn 0.8s ease-out forwards;
    opacity: 0;
    filter: blur(5px);
    transform: translateY(-10px);
}

.description {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    animation: fadeSlideIn 0.8s ease-out 0.1s forwards;
    opacity: 0;
    filter: blur(5px);
    transform: translateY(-10px);
}

.form-group {
    margin-bottom: 1.25rem;
    animation: fadeSlideIn 0.8s ease-out 0.2s forwards;
    opacity: 0;
    filter: blur(5px);
    transform: translateY(-10px);
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.glass-input {
    border-radius: 1rem;
    border: 1px solid var(--border);
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.glass-input:focus-within {
    border-color: rgba(139, 92, 246, 0.7);
    background-color: rgba(139, 92, 246, 0.1);
}

input {
    width: 100%;
    background: transparent;
    padding: 1rem;
    border: none;
    font-size: 0.875rem;
    color: var(--foreground);
    outline: none;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    animation: fadeSlideIn 0.8s ease-out 0.4s forwards;
    opacity: 0;
    filter: blur(5px);
    transform: translateY(-10px);
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    border: 1px solid var(--border);
    position: relative;
    cursor: pointer;
}

.custom-checkbox:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.custom-checkbox:checked::after {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 0.75rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.reset-link {
    color: #a78bfa;
    text-decoration: none;
}

.reset-link:hover {
    text-decoration: underline;
}

.sign-in-btn {
    width: 100%;
    background-color: var(--primary);
    color: var(--primary-foreground);
    border: none;
    border-radius: 1rem;
    padding: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 1.5rem;
    animation: fadeSlideIn 0.8s ease-out 0.5s forwards;
    opacity: 0;
    filter: blur(5px);
    transform: translateY(-10px);
}

.sign-in-btn:hover {
    background-color: #5b21b6;
}

.divider {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    animation: fadeSlideIn 0.8s ease-out 0.6s forwards;
    opacity: 0;
    filter: blur(5px);
    transform: translateY(-10px);
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: var(--border);
}

.divider-text {
    padding: 0 1rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    background-color: var(--background);
}

.google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem;
    background-color: transparent;
    color: var(--foreground);
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 1.5rem;
    animation: fadeSlideIn 0.8s ease-out 0.7s forwards;
    opacity: 0;
    filter: blur(5px);
    transform: translateY(-10px);
}

.google-btn:hover {
    background-color: var(--secondary);
}

.create-account {
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    animation: fadeSlideIn 0.8s ease-out 0.8s forwards;
    opacity: 0;
    filter: blur(5px);
    transform: translateY(-10px);
}

.create-link {
    color: #a78bfa;
    text-decoration: none;
}

.create-link:hover {
    text-decoration: underline;
}

.testimonials {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    padding: 0 2rem;
    width: 100%;
    justify-content: center;
}

.testimonial-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-radius: 1.5rem;
    background-color: rgba(250, 250, 250, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem;
    width: 16rem;
    animation: testimonialIn 1s ease-out forwards;
    opacity: 0;
    filter: blur(5px);
    transform: translateY(20px) scale(0.95);
}

.dark-mode .testimonial-card {
    background-color: rgba(23, 23, 23, 0.4);
}

.testimonial-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 1rem;
    object-fit: cover;
}

.testimonial-content {
    font-size: 0.875rem;
}

.testimonial-name {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.testimonial-handle {
    color: var(--muted-foreground);
}

.testimonial-text {
    margin-top: 0.25rem;
    color: var(--foreground);
    opacity: 0.8;
}

.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

@keyframes fadeSlideIn {
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

@keyframes slideRightIn {
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateX(0);
    }
}

@keyframes testimonialIn {
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) scale(1);
    }
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-600 {
    animation-delay: 0.6s;
}

.delay-700 {
    animation-delay: 0.7s;
}

.delay-800 {
    animation-delay: 0.8s;
}

.delay-1000 {
    animation-delay: 1s;
}

.delay-1200 {
    animation-delay: 1.2s;
}

.delay-1400 {
    animation-delay: 1.4s;
}

.mobile-only {
    display: block;
}

@media (min-width: 768px) {
    .mobile-only {
        display: none;
    }
}

/* Estilos específicos para o formulário de cadastro */
.required {
    color: #e53e3e;
    font-size: 0.875rem;
}

.message {
    margin-top: 1.25rem;
    padding: 1rem;
    border-radius: 0.75rem;
    text-align: center;
    font-weight: 500;
    display: none;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.success {
    background-color: #f0fff4;
    color: #2f855a;
    border: 1px solid #c6f6d5;
}

.error {
    background-color: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
}

.instructions {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background-color: var(--card);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    border-left: 4px solid var(--primary);
}

.instructions h3 {
    margin-bottom: 0.75rem;
    color: var(--foreground);
    font-weight: 600;
}

.instructions ul {
    padding-left: 1.25rem;
}

.instructions li {
    margin-bottom: 0.5rem;
    color: var(--muted-foreground);
}

.btn-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#nextPageBtn {
    display: none;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    margin-top: 0.75rem;
    box-shadow: none;
}

#nextPageBtn:hover {
    background: var(--primary);
    color: var(--primary-foreground);
}
