/* ========================================
   RESET E VARIÁVEIS GLOBAIS
   ======================================== */

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

:root {
    /* Cores */
    --primary-red: #1f9fff;
    --primary-red-dark: #0f6fb9;
    --secondary-cyan: #59dcff;
    --secondary-cyan-dark: #1db3d9;
    --background-dark: #041a36;
    --background-gradient-1: #05264a;
    --background-gradient-2: #0a4f88;
    --background-gradient-3: #0a78c0;
    --text-white: #FFFFFF;
    --text-gray: #E0E0E0;
    --text-gray-dark: #999999;
    --card-bg: #FFFFFF;
    --card-bg-dark: #1A1A2E;
    --border-color: #333333;
    --error-color: #FF4444;
    
    /* Tipografia */
    --font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
    --font-size-sm: 0.875rem;
    --font-size-xs: 0.75rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 2.5rem;
    --font-size-4xl: 3rem;
    --font-size-5xl: 3.5rem;
    
    /* Espaçamento */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 8px 32px rgba(0, 0, 0, 0.3);
    
    /* Transições */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 200ms ease-in-out;
    --transition-slow: 300ms ease-in-out;
}

/* ========================================
   ESTILOS GLOBAIS
   ======================================== */

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

/* ========================================
   LAYOUT PRINCIPAL
   ======================================== */

.min-h-screen {
    min-height: 100vh;
}

.w-full {
    width: 100%;
}

.overflow-hidden {
    overflow: hidden;
}

.relative {
    position: relative;
}

/* Fundo com gradiente */
.gradient-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, var(--background-gradient-1) 0%, var(--background-gradient-2) 50%, var(--background-gradient-3) 100%);
}

/* Fundo exclusivo da página de download */
.download-page .gradient-bg {
    background-image:
        linear-gradient(110deg, rgba(2, 7, 25, 0.88) 0%, rgba(2, 8, 27, 0.78) 45%, rgba(2, 8, 27, 0.92) 100%);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.cadastro-page .gradient-bg {
    background-image:
        linear-gradient(110deg, rgba(2, 7, 25, 0.88) 0%, rgba(2, 8, 27, 0.78) 45%, rgba(2, 8, 27, 0.92) 100%);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.download-page .gradient-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 28% 52%, rgba(58, 129, 255, 0.18), transparent 45%),
        radial-gradient(circle at 70% 48%, rgba(6, 18, 54, 0.32), transparent 55%);
    pointer-events: none;
}

.cadastro-page .gradient-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 28% 52%, rgba(58, 129, 255, 0.18), transparent 45%),
        radial-gradient(circle at 70% 48%, rgba(6, 18, 54, 0.32), transparent 55%);
    pointer-events: none;
}

/* ========================================
   HEADER
   ======================================== */

.header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: transparent;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity var(--transition-base);
}

.logo-btn:hover {
    opacity: 0.8;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-white);
}

.brand-mark {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
    color: transparent;
    font-size: 0;
    line-height: 0;
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: 10%;
    background: url("./assets/vagafacil-icon.png") center / contain no-repeat;
}

.brand-wording {
    color: var(--text-white);
    font-weight: 800;
    font-size: clamp(1.1rem, 2.2vw, 1.9rem);
    line-height: 1.05;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
}

.brand-logo {
    width: clamp(180px, 26vw, 300px);
    height: auto;
    display: block;
    object-fit: contain;
}

.logo {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--primary-red);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-weight: bold;
    font-size: var(--font-size-lg);
}

.header h1 {
    color: var(--text-white);
    font-weight: bold;
    font-size: var(--font-size-lg);
}

@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .brand-mark {
        width: 1.6rem;
        height: 1.6rem;
        border-radius: 0.45rem;
        font-size: 0.95rem;
    }

    .brand-wording {
        font-size: clamp(0.98rem, 5.2vw, 1.25rem);
    }

    .brand-logo {
        width: clamp(150px, 44vw, 220px);
    }
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.main-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 2rem 1rem;
}

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

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .main-content {
        min-height: auto;
        padding: 2rem 1rem;
    }
}

/* ========================================
   SEÇÕES
   ======================================== */

.left-section {
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.right-section {
    display: flex;
    justify-content: center;
}

/* ========================================
   BADGES
   ======================================== */

.badge {
    display: inline-block;
    background-color: rgba(0, 204, 153, 0.2);
    border: 1px solid rgba(0, 204, 153, 0.5);
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: #00DD99;
    width: fit-content;
}

/* ========================================
   TIPOGRAFIA
   ======================================== */

.title-large {
    font-size: var(--font-size-5xl);
    font-weight: bold;
    line-height: 1.2;
    color: var(--text-white);
}

.description {
    font-size: var(--font-size-lg);
    color: #D0D0D0;
}

.description-small {
    font-size: var(--font-size-sm);
    color: #999999;
}

@media (max-width: 768px) {
    .title-large {
        font-size: var(--font-size-3xl);
    }
    
    .description {
        font-size: 1rem;
    }
}

/* ========================================
   BOTÕES
   ======================================== */

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-primary {
    background-color: #00dd99;
    color: #04243f;
    border: 1px solid rgba(0, 221, 153, 0.72);
}

.btn-primary:hover {
    background-color: #00c287;
}

.btn-secondary {
    background-color: #00dd99;
    color: #04243f;
    border: 1px solid rgba(0, 221, 153, 0.72);
}

.btn-secondary:hover {
    background-color: #00c287;
}

.btn-full {
    width: 100%;
}

.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* ========================================
   CARDS
   ======================================== */

.card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-2xl);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card-logo {
    width: 4rem;
    height: 4rem;
    background-color: var(--primary-red);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-weight: bold;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
}

.card-brand-logo {
    width: min(280px, 72%);
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0 auto;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
}

.card-brand-lockup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin: 0 auto;
}

.card-brand-lockup .brand-wording {
    font-size: clamp(1.05rem, 2.3vw, 1.55rem);
}

/* ========================================
   BADGES INFORMATIVOS
   ======================================== */

.badges-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: rgba(50, 50, 80, 0.4);
    border-radius: var(--radius-lg);
    padding: 1rem;
    color: var(--text-white);
    font-weight: 600;
}

.info-badge .icon {
    color: var(--secondary-cyan);
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ========================================
   FORMULÁRIO
   ======================================== */

.form-card {
    background-color: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-2xl);
}

.form-title {
    font-size: var(--font-size-2xl);
    font-weight: bold;
    color: #1A1A1A;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: #333333;
}

.form-group input {
    padding: 0.75rem 1rem;
    border: 2px solid #CCCCCC;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    transition: border-color var(--transition-base);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-red);
}

.password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input input {
    flex: 1;
    padding-right: 2.5rem;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem;
    transition: opacity var(--transition-base);
}

.toggle-password:hover {
    opacity: 0.7;
}

.error-message {
    color: var(--error-color);
    font-size: var(--font-size-sm);
    display: none;
}

.error-message.show {
    display: block;
}

.recaptcha-notice {
    font-size: var(--font-size-xs);
    color: #999999;
    text-align: center;
    margin-top: 1rem;
}

/* ========================================
   MENSAGEM DE SUCESSO
   ======================================== */

.success-message {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.success-icon {
    font-size: 3rem;
}

.success-message h3 {
    font-size: var(--font-size-2xl);
    font-weight: bold;
    color: #1A1A1A;
}

.success-message p {
    color: #666666;
    font-size: var(--font-size-base);
}

/* ========================================
   CARD DE SUCESSO (DOWNLOAD)
   ======================================== */

.success-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 1.45rem;
    min-height: clamp(22rem, 46vw, 31rem);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    position: relative;
    width: min(100%, 34rem);
}

.card-woman {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 72% center;
    border-radius: 1.4rem;
    z-index: 5;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35));
    opacity: 0.94;
    pointer-events: none;
}

.success-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 6;
    background:
        linear-gradient(95deg, rgba(8, 19, 45, 0.9) 0%, rgba(8, 19, 45, 0.7) 42%, rgba(8, 19, 45, 0.42) 72%, rgba(8, 19, 45, 0.26) 100%);
    pointer-events: none;
}

.decorative-circle {
    position: absolute;
    top: 0.8rem;
    right: 4rem;
    width: 6rem;
    height: 6rem;
    background-color: rgba(168, 85, 247, 0.3);
    border-radius: 50%;
    filter: blur(2rem);
}

.success-icon-large {
    font-size: 4rem;
    color: #00dd99;
    text-align: left;
    position: relative;
    z-index: 10;
    margin-bottom: 0.35rem;
    width: 100%;
}

.success-text {
    text-align: left;
    position: relative;
    z-index: 10;
    margin-bottom: 1.15rem;
    width: 100%;
}

.success-text h3 {
    font-size: clamp(2rem, 4.2vw, var(--font-size-2xl));
    font-weight: bold;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.success-text p {
    color: var(--text-white);
    font-size: clamp(1.15rem, 2.2vw, var(--font-size-lg));
}

.opportunity-box {
    background-color: rgba(0, 204, 153, 0.2);
    border: 1px solid rgba(0, 204, 153, 0.5);
    border-radius: var(--radius-lg);
    padding: 0.7rem 0.8rem;
    position: relative;
    z-index: 10;
    margin-bottom: 1rem;
    width: 100%;
}

.opportunity-box p {
    color: #00DD99;
    font-weight: 600;
    text-align: center;
}

.download-brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    z-index: 10;
    color: #EAF5FF;
}

.download-brand-mark-top {
    margin-bottom: 0.7rem;
    width: 100%;
}

.download-brand-mark-bottom {
    margin: 0;
    width: 100%;
}

.download-brand-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.35rem;
    background:
        radial-gradient(circle at 24% 30%, #b5efff 0.17rem, transparent 0.2rem),
        radial-gradient(circle at 77% 28%, #b5efff 0.16rem, transparent 0.19rem),
        radial-gradient(circle at 60% 72%, #b5efff 0.16rem, transparent 0.19rem),
        linear-gradient(136deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.08));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.download-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.download-brand-text strong {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.download-brand-text small {
    font-size: 0.82rem;
    font-weight: 700;
    color: #C7DFFF;
    margin-top: 0.08rem;
}

/* Responsividade dedicada da página de download */
.download-page .container-max {
    max-width: min(80rem, 94vw);
}

.download-page .grid-2 {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(1.1rem, 2.2vw, 2rem);
}

.download-page .title-large {
    font-size: clamp(2rem, 4.7vw, 3.4rem);
}

.download-page .description {
    font-size: clamp(1rem, 1.8vw, 1.12rem);
}

.download-page .left-section {
    gap: clamp(0.8rem, 1.4vw, 1.5rem);
}

@media (max-width: 1080px) {
    .download-page .main-content {
        padding: 1.5rem 1rem;
    }

    .download-page .success-card {
        width: 100%;
        min-height: clamp(20.5rem, 52vw, 29rem);
    }

    .download-page .success-text h3 {
        font-size: clamp(1.8rem, 4vw, 2.4rem);
    }
}

@media (max-width: 900px) {
    .download-page .grid-2 {
        grid-template-columns: 1fr;
        gap: 1.15rem;
    }

    .download-page .left-section,
    .download-page .right-section {
        width: min(100%, 42rem);
        margin-inline: auto;
    }

    .download-page .success-card {
        min-height: clamp(22rem, 72vw, 28rem);
    }

    .download-page .button-group {
        width: 100%;
    }

    .download-page .button-group .btn {
        flex: 1;
        min-width: 10rem;
    }
}

@media (max-width: 640px) {
    .download-page .main-content {
        padding: 1rem 0.85rem 1.2rem;
    }

    .download-page .left-section,
    .download-page .right-section {
        width: 100%;
    }

    .download-page .success-card {
        min-height: clamp(21rem, 90vw, 26rem);
        padding: 1.05rem;
    }

    .download-page .success-card::before {
        background: linear-gradient(96deg, rgba(8, 19, 45, 0.93) 0%, rgba(8, 19, 45, 0.83) 46%, rgba(8, 19, 45, 0.55) 76%, rgba(8, 19, 45, 0.4) 100%);
    }

    .download-page .card-woman {
        object-position: 74% center;
    }

    .download-page .success-icon-large {
        font-size: 3.2rem;
    }

    .download-page .success-text h3 {
        font-size: clamp(1.7rem, 8.4vw, 2.2rem);
        line-height: 1.15;
    }

    .download-page .success-text p {
        font-size: clamp(1rem, 4.8vw, 1.2rem);
    }

    .download-page .download-brand-icon {
        width: 1.25rem;
        height: 1.25rem;
    }

    .download-page .download-brand-text strong {
        font-size: 0.9rem;
    }

    .download-page .download-brand-text small {
        font-size: 0.78rem;
    }

    .download-page .opportunity-box {
        padding: 0.62rem 0.65rem;
    }
}

@media (max-width: 420px) {
    .download-page .header {
        padding: 0.6rem 0.7rem;
    }

    .download-page .title-large {
        font-size: clamp(1.7rem, 9.2vw, 2rem);
    }

    .download-page .description {
        font-size: 0.95rem;
    }

    .download-page .success-card {
        min-height: 19.8rem;
        border-radius: 1.1rem;
    }

    .download-page .card-woman {
        border-radius: 1.1rem;
    }

    .download-page .download-info {
        font-size: 0.72rem;
        line-height: 1.35;
    }
}

/* ========================================
   INFORMAÇÕES DE DOWNLOAD
   ======================================== */

.download-info {
    font-size: var(--font-size-xs);
    color: #999999;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 1rem;
    color: #999999;
    font-size: var(--font-size-sm);
}

/* ========================================
   RESPONSIVIDADE GLOBAL
   ======================================== */

@media (max-width: 1200px) {
    .container-max {
        max-width: min(96vw, 72rem);
    }

    .title-large {
        font-size: clamp(2rem, 4.8vw, 3rem);
    }
}

@media (max-width: 992px) {
    .main-content {
        padding: 1.5rem 1rem;
        min-height: auto;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .left-section,
    .right-section {
        width: min(100%, 46rem);
        margin-inline: auto;
    }

    .card,
    .form-card,
    .success-card {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.9rem 0.85rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.85rem;
    }

    .logo-section,
    .logo-btn {
        width: 100%;
        justify-content: center;
    }

    .header > .btn,
    .header .btn {
        width: min(100%, 24rem);
    }

    .left-section {
        align-items: center;
        text-align: center;
    }

    .button-group {
        width: 100%;
        justify-content: center;
    }

    .btn {
        width: min(100%, 24rem);
        white-space: normal;
        text-align: center;
        line-height: 1.25;
        padding: 0.72rem 1rem;
    }

    .card,
    .form-card {
        padding: 1.2rem;
    }

    .form-title {
        font-size: clamp(1.3rem, 6vw, 1.75rem);
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 1rem 0.75rem 1.2rem;
    }

    .title-large {
        font-size: clamp(1.55rem, 8.2vw, 2rem);
        line-height: 1.2;
    }

    .description {
        font-size: 0.95rem;
    }

    .badge {
        font-size: 0.72rem;
        padding: 0.38rem 0.72rem;
    }

    .btn,
    .header .btn {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .header {
        padding: 0.7rem 0.6rem;
    }

    .card,
    .form-card {
        padding: 0.95rem;
        border-radius: 0.9rem;
    }
}

/* ========================================
   UTILITÁRIOS
   ======================================== */

.text-center {
    text-align: center;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}
