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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #2e1065 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Efeito de grid */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 40%, rgba(255,255,255,0.03) 1px, transparent 1px),
        radial-gradient(circle at 75% 60%, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Orbes animadas */
.orb-bg {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: floatOrb 15s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: #8b5cf6;
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #ec4899;
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: #06b6d4;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
    opacity: 0.15;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -40px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

.wrapper {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.main {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.row {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-radius: 48px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* LADO ESQUERDO - CARROSSEL COMPLETO */
.left {
    flex: 1;
    padding: 48px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.5s ease;
}

/* Barra de progresso estilo stories */
.progress-bar-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 6px;
    padding: 20px 48px 0 48px;
    background: transparent;
}

.progress-segment {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 3px;
    transition: width linear;
}

.progress-fill.active {
    animation: progress 5s linear forwards;
}

@keyframes progress {
    from { width: 0%; }
    to { width: 100%; }
}

/* Badge que também muda */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: 60px;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-20px) rotateX(-30deg);
    animation: dropIn 0.6s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
    animation-delay: 0s;
}

.badge svg {
    width: 16px;
    height: 16px;
    color: #fbbf24;
}

.badge span {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.3px;
}

/* Conteúdo do carrossel */
.carousel-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: auto;
}

.slide-content {
    position: relative;
}

/* ANIMAÇÕES */
.illustration {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
    animation: dropFloat 0.7s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
    animation-delay: 0.05s;
}

.illustration svg {
    width: 100%;
    max-width: 320px;
    height: auto;
}

.slide-title {
    font-size: 38px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    letter-spacing: -1px;
    margin: 20px 0 16px;
    opacity: 0;
    transform: translateX(-20px) rotateY(-10deg);
    animation: slideInFromLeft 0.6s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
    animation-delay: 0.15s;
}

.slide-title span {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    animation: glowPulse 0.8s ease-in-out forwards;
    animation-delay: 0.4s;
}

.slide-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.25s;
}

.slide-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 13px;
    color: #fbbf24;
    opacity: 0;
    transform: scale(0.8);
    animation: popIn 0.5s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
    animation-delay: 0.35s;
}

.slide-tag svg {
    width: 14px;
    height: 14px;
}

/* Stats */
.stats {
    display: flex;
    gap: 40px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-item {
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
    animation: floatUp 0.5s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}

.stat-item:nth-child(1) { animation-delay: 0.2s; }
.stat-item:nth-child(2) { animation-delay: 0.3s; }
.stat-item:nth-child(3) { animation-delay: 0.4s; }

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: white;
    letter-spacing: -1px;
    transition: all 0.3s ease;
    display: inline-block;
    animation: numberGlow 0.6s ease-out forwards;
    animation-delay: 0.5s;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ANIMAÇÕES */
@keyframes dropIn {
    0% {
        opacity: 0;
        transform: translateY(-40px) rotateX(-40deg);
    }
    60% {
        opacity: 1;
        transform: translateY(8px) rotateX(5deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

@keyframes dropFloat {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.9) rotate(-3deg);
    }
    50% {
        opacity: 0.8;
        transform: translateY(10px) scale(1.02) rotate(1deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0);
    }
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-40px) rotateY(-15deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0);
    }
}

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

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    70% {
        opacity: 0.9;
        transform: scale(1.08);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes numberGlow {
    0% {
        opacity: 0;
        text-shadow: 0 0 0 rgba(251, 191, 36, 0);
        transform: scale(0.8);
    }
    50% {
        text-shadow: 0 0 15px rgba(251, 191, 36, 0.5);
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        text-shadow: 0 0 0 rgba(251, 191, 36, 0);
        transform: scale(1);
    }
}

@keyframes glowPulse {
    0% {
        opacity: 0;
        text-shadow: 0 0 0 rgba(251, 191, 36, 0);
    }
    50% {
        text-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
    }
    100% {
        opacity: 1;
        text-shadow: 0 0 0 rgba(251, 191, 36, 0);
    }
}

/* Animação de saída */
.slide-content.exit-animation .badge,
.slide-content.exit-animation .illustration,
.slide-content.exit-animation .slide-title,
.slide-content.exit-animation .slide-description,
.slide-content.exit-animation .slide-tag,
.stats.exit-animation .stat-item {
    animation: floatOut 0.4s ease forwards;
}

@keyframes floatOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
        filter: blur(4px);
    }
}

/* Controles de navegação */
.carousel-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.left:hover .carousel-controls {
    opacity: 1;
}

.control-btn {
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    opacity: 0.7;
}

.control-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    opacity: 1;
    transform: scale(1.05);
    border-color: rgba(251, 191, 36, 0.5);
}

.control-btn svg {
    width: 20px;
    height: 20px;
    color: white;
}

/* LADO DIREITO - FORMULÁRIO */
.right {
    flex: 0.9;
    padding: 48px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
}

.card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 40px;
}

.logo img {
    max-width: 160px;
    height: auto;
    margin-bottom: 20px;
}

.logo h2 {
    font-size: 28px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.logo p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.form-group input {
    width: 100%;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 0 20px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: white;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: #fbbf24;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.password-container {
    position: relative;
}

.password-container input {
    padding-right: 50px;
}

.eye-btn {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.eye-btn svg {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s;
}

.eye-btn:hover svg {
    color: #fbbf24;
}

.btn-login {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border: none;
    border-radius: 18px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px rgba(251, 191, 36, 0.4);
}

.btn-login svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s;
}

.btn-login:hover svg {
    transform: translateX(4px);
}

.version {
    text-align: center;
    margin-top: 28px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
}

.version strong {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

/* Alertas */
.alert-premium {
    padding: 12px 16px;
    border-radius: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-premium svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border-left: 3px solid #ef4444;
    color: #fca5a5;
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border-left: 3px solid #22c55e;
    color: #86efac;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border-left: 3px solid #f59e0b;
    color: #fde047;
}

.alert-info {
    background: rgba(139, 92, 246, 0.15);
    border-left: 3px solid #8b5cf6;
    color: #c4b5fd;
}

.close-alert {
    margin-left: auto;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.close-alert:hover {
    opacity: 1;
}

.swipe-indicator {
    display: none;
}

/* ============================================ */
/* RESPONSIVIDADE BALANCEADA PARA 14" E 24" */
/* ============================================ */

/* Para telas de 14 polegadas (altura menor) */
@media (max-height: 900px) and (min-width: 1200px) {
    .wrapper {
        padding: 16px;
    }
    
    .left {
        padding: 36px 40px;
    }
    
    .right {
        padding: 36px 40px;
    }
    
    .progress-bar-container {
        padding: 16px 40px 0 40px;
    }
    
    .illustration svg {
        max-width: 280px;
    }
    
    .slide-title {
        font-size: 32px;
        margin: 16px 0 12px;
    }
    
    .slide-description {
        font-size: 14px;
        margin-bottom: 18px;
    }
    
    .stats {
        gap: 30px;
        margin-top: 24px;
        padding-top: 24px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .logo {
        margin-bottom: 32px;
    }
    
    .logo img {
        max-width: 140px;
        margin-bottom: 16px;
    }
    
    .logo h2 {
        font-size: 24px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input,
    .btn-login {
        height: 46px;
    }
}

/* Para telas de 14" muito pequenas */
@media (max-height: 800px) and (min-width: 1200px) {
    .left {
        padding: 28px 36px;
    }
    
    .right {
        padding: 28px 36px;
    }
    
    .progress-bar-container {
        padding: 12px 36px 0 36px;
    }
    
    .illustration svg {
        max-width: 240px;
    }
    
    .slide-title {
        font-size: 28px;
        margin: 12px 0 10px;
    }
    
    .slide-description {
        font-size: 13px;
        margin-bottom: 14px;
    }
    
    .stats {
        gap: 24px;
        margin-top: 18px;
        padding-top: 18px;
    }
    
    .stat-number {
        font-size: 22px;
    }
    
    .logo {
        margin-bottom: 24px;
    }
    
    .logo img {
        max-width: 120px;
    }
    
    .logo h2 {
        font-size: 22px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-group input,
    .btn-login {
        height: 44px;
    }
    
    .version {
        margin-top: 20px;
    }
}

/* Para telas de 24 polegadas ou maiores */
@media (min-width: 1920px) {
    .main {
        max-width: 1600px;
    }
    
    .left {
        padding: 64px;
    }
    
    .right {
        padding: 64px;
    }
    
    .progress-bar-container {
        padding: 24px 64px 0 64px;
    }
    
    .illustration svg {
        max-width: 380px;
    }
    
    .slide-title {
        font-size: 46px;
        margin: 24px 0 20px;
    }
    
    .slide-description {
        font-size: 17px;
        margin-bottom: 28px;
    }
    
    .stats {
        gap: 50px;
        margin-top: 40px;
        padding-top: 40px;
    }
    
    .stat-number {
        font-size: 34px;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    .card {
        max-width: 450px;
    }
    
    .logo img {
        max-width: 200px;
        margin-bottom: 28px;
    }
    
    .logo h2 {
        font-size: 32px;
    }
    
    .logo p {
        font-size: 15px;
    }
    
    .form-group input,
    .btn-login {
        height: 56px;
        font-size: 15px;
    }
    
    .version {
        font-size: 12px;
    }
}

/* Telas muito grandes (4K) */
@media (min-width: 2560px) {
    .main {
        max-width: 2000px;
    }
    
    .left {
        padding: 80px;
    }
    
    .right {
        padding: 80px;
    }
    
    .slide-title {
        font-size: 56px;
    }
    
    .slide-description {
        font-size: 20px;
    }
    
    .card {
        max-width: 500px;
    }
    
    .logo img {
        max-width: 240px;
    }
    
    .logo h2 {
        font-size: 38px;
    }
}

/* Responsivo para tablets e celulares */
@media (max-width: 1100px) {
    .row {
        flex-direction: column;
        max-width: 650px;
        margin: 0 auto;
    }
    
    .left {
        padding: 40px;
    }
    
    .slide-title {
        font-size: 32px;
    }
    
    .right {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding: 40px;
    }
    
    .progress-bar-container {
        padding: 16px 40px 0 40px;
    }
    
    .card {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .wrapper {
        padding: 16px;
    }
    
    .left {
        padding: 32px;
    }
    
    .illustration svg {
        max-width: 240px;
    }
    
    .slide-title {
        font-size: 26px;
    }
    
    .stats {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .carousel-controls {
        display: none;
    }
    
    .right {
        padding: 32px;
    }
    
    .logo img {
        max-width: 130px;
    }
    
    .logo h2 {
        font-size: 24px;
    }
    
    .swipe-indicator {
        display: block;
        text-align: center;
        margin-top: 8px;
        font-size: 11px;
        color: rgba(255,255,255,0.4);
        animation: fadeInOut 2s ease-in-out;
    }
    
    @keyframes fadeInOut {
        0%, 100% { opacity: 0; }
        50% { opacity: 1; }
    }
}

@media (max-width: 480px) {
    .left, .right {
        padding: 24px;
    }
    
    .progress-bar-container {
        padding: 12px 24px 0 24px;
    }
    
    .slide-title {
        font-size: 22px;
    }
    
    .slide-description {
        font-size: 12px;
    }
    
    .logo img {
        max-width: 110px;
    }
    
    .logo h2 {
        font-size: 20px;
    }
    
    .form-group input,
    .btn-login {
        height: 44px;
    }
}

/* Landscape em dispositivos móveis */
@media (max-width: 896px) and (orientation: landscape) {
    .wrapper {
        padding: 12px;
    }
    
    .row {
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .left, .right {
        padding: 20px;
    }
    
    .illustration svg {
        max-width: 180px;
    }
    
    .slide-title {
        font-size: 20px;
        margin: 8px 0;
    }
    
    .stats {
        margin-top: 12px;
        padding-top: 12px;
        gap: 16px;
    }
    
    .logo img {
        max-width: 90px;
        margin-bottom: 8px;
    }
    
    .logo h2 {
        font-size: 18px;
    }
}