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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: #0a0e14;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 140, 0, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, #0a0e14 0%, #141923 50%, #0a0e14 100%);
    background-size: 100% 100%, 100% 100%, 200% 200%;
    animation: bgGradient 20s ease infinite;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 107, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 140, 0, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

@keyframes bgGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.container {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
}

.screen {
    display: none;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.3), transparent);
    z-index: 1;
}

.screen.active {
    display: block;
}

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

.logo-container {
    background: #FF6B00;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%, rgba(0, 0, 0, 0.05) 100%);
    pointer-events: none;
}

.logo-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.logo-text {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 36px;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    position: relative;
}

.logo-cade {
    color: #1a3a5f;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: lowercase;
    position: relative;
    text-shadow: 
        0 1px 2px rgba(255, 255, 255, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.15);
    padding-right: 4px;
}

.logo-cade::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(26, 58, 95, 0.3), transparent);
    border-radius: 2px;
}

.logo-guincho {
    color: #ffffff;
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: lowercase;
    position: relative;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.2);
    display: inline-block;
}

.logo-text::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.form-container {
    padding: 52px 40px;
    background: #ffffff;
    position: relative;
}

h2 {
    color: #0f172a;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 14px;
    text-align: center;
    letter-spacing: -0.8px;
    line-height: 1.2;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #64748b;
    font-size: 15px;
    text-align: center;
    margin-bottom: 36px;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 0.2px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

input {
    padding: 18px 22px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 400;
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

input:hover {
    border-color: #cbd5e1;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

input:focus {
    border-color: #FF6B00;
    background: #ffffff;
    box-shadow: 
        0 0 0 5px rgba(255, 107, 0, 0.12),
        0 6px 16px rgba(255, 107, 0, 0.18),
        0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

button {
    padding: 18px 28px;
    background: linear-gradient(135deg, #FF6B00 0%, #FF8C00 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none;
    letter-spacing: 0.4px;
    box-shadow: 
        0 6px 16px rgba(255, 107, 0, 0.35),
        0 3px 6px rgba(255, 107, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

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

button:hover {
    background: linear-gradient(135deg, #FF8C00 0%, #FFA500 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 10px 24px rgba(255, 107, 0, 0.45),
        0 5px 10px rgba(255, 107, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

button:hover::before {
    left: 100%;
}

button:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 8px rgba(255, 107, 0, 0.3),
        0 1px 2px rgba(255, 107, 0, 0.2);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin-top: 14px;
    min-height: 20px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.08) 100%);
    border-radius: 10px;
    border: 1px solid rgba(239, 68, 68, 0.25);
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.1);
}

.loading-container {
    text-align: center;
    padding: 24px 0;
}

.spinner {
    width: 64px;
    height: 64px;
    border: 4px solid #f1f5f9;
    border-top: 4px solid #FF6B00;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 24px;
    box-shadow: 
        0 4px 12px rgba(255, 107, 0, 0.2),
        inset 0 0 0 2px rgba(255, 107, 0, 0.1);
    position: relative;
}

.spinner::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: rgba(255, 107, 0, 0.3);
    animation: spin 1.2s linear infinite reverse;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-container h2 {
    color: #0f172a;
    margin-bottom: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-container .subtitle {
    color: #64748b;
    margin-bottom: 0;
    font-weight: 400;
}

/* Animação de Validação Melhorada */
.validation-animation {
    width: 280px;
    height: 280px;
    margin: 0 auto 30px;
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid #FF6B00;
    box-shadow: 
        0 0 30px rgba(255, 107, 0, 0.5),
        inset 0 0 30px rgba(255, 107, 0, 0.1);
    transform-style: preserve-3d;
}

.animated-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 107, 0, 0.1) 0%,
        rgba(255, 140, 0, 0.2) 25%,
        rgba(255, 107, 0, 0.1) 50%,
        rgba(255, 140, 0, 0.2) 75%,
        rgba(255, 107, 0, 0.1) 100%
    );
    background-size: 200% 200%;
    animation: bgShift 4s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes bgShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 107, 0, 0.3) 20%,
        #FF6B00 50%,
        rgba(255, 107, 0, 0.3) 80%,
        transparent 100%
    );
    left: 0;
    box-shadow: 
        0 0 15px #FF6B00,
        0 0 30px rgba(255, 107, 0, 0.5);
    z-index: 10;
}

.scan-line-1 {
    top: 0;
    animation: scanDown 2s linear infinite;
}

.scan-line-2 {
    top: 0;
    animation: scanDown 2s linear infinite 0.7s;
    opacity: 0.6;
    height: 2px;
}

.scan-line-3 {
    top: 0;
    animation: scanDown 2s linear infinite 1.4s;
    opacity: 0.4;
    height: 2px;
}

@keyframes scanDown {
    0% {
        top: 0;
        opacity: 1;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.8;
        transform: scaleY(1.2);
    }
    100% {
        top: 100%;
        opacity: 0;
        transform: scaleY(0.8);
    }
}

.scan-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
}

.grid-line {
    position: absolute;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 107, 0, 0.4),
        rgba(255, 140, 0, 0.6),
        rgba(255, 107, 0, 0.4),
        transparent
    );
    animation: gridPulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(255, 107, 0, 0.3);
}

.grid-line.horizontal {
    width: 100%;
    height: 2px;
    left: 0;
}

.grid-line.horizontal:nth-child(1) {
    top: 20%;
    animation-delay: 0s;
}

.grid-line.horizontal:nth-child(2) {
    top: 40%;
    animation-delay: 0.25s;
}

.grid-line.horizontal:nth-child(3) {
    top: 60%;
    animation-delay: 0.5s;
}

.grid-line.horizontal:nth-child(4) {
    top: 80%;
    animation-delay: 0.75s;
}

.grid-line.vertical {
    width: 2px;
    height: 100%;
    top: 0;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 107, 0, 0.4),
        rgba(255, 140, 0, 0.6),
        rgba(255, 107, 0, 0.4),
        transparent
    );
}

.grid-line.vertical:nth-child(5) {
    left: 20%;
    animation-delay: 0.1s;
}

.grid-line.vertical:nth-child(6) {
    left: 40%;
    animation-delay: 0.35s;
}

.grid-line.vertical:nth-child(7) {
    left: 60%;
    animation-delay: 0.6s;
}

.grid-line.vertical:nth-child(8) {
    left: 80%;
    animation-delay: 0.85s;
}

@keyframes gridPulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.pulse-circle {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid #FF6B00;
    z-index: 3;
}

.pulse-1 {
    width: 100px;
    height: 100px;
    animation: pulse1 2s ease-in-out infinite;
    box-shadow: 
        0 0 20px rgba(255, 107, 0, 0.6),
        inset 0 0 20px rgba(255, 107, 0, 0.2);
}

.pulse-2 {
    width: 140px;
    height: 140px;
    animation: pulse2 2.5s ease-in-out infinite 0.3s;
    border-color: rgba(255, 140, 0, 0.6);
    box-shadow: 
        0 0 25px rgba(255, 140, 0, 0.4),
        inset 0 0 25px rgba(255, 140, 0, 0.1);
}

.pulse-3 {
    width: 180px;
    height: 180px;
    animation: pulse3 3s ease-in-out infinite 0.6s;
    border-color: rgba(255, 107, 0, 0.3);
    box-shadow: 
        0 0 30px rgba(255, 107, 0, 0.3),
        inset 0 0 30px rgba(255, 107, 0, 0.05);
}

@keyframes pulse1 {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.8;
    }
}

@keyframes pulse2 {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.4;
    }
}

@keyframes pulse3 {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

/* Partículas flutuantes */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 4;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #FF6B00;
    border-radius: 50%;
    box-shadow: 0 0 10px #FF6B00;
    animation: float 4s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 25%;
    animation-delay: 0.8s;
}

.particle:nth-child(3) {
    top: 30%;
    left: 70%;
    animation-delay: 1.6s;
}

.particle:nth-child(4) {
    top: 80%;
    left: 60%;
    animation-delay: 2.4s;
}

.particle:nth-child(5) {
    top: 10%;
    left: 50%;
    animation-delay: 0.4s;
}

.particle:nth-child(6) {
    top: 90%;
    left: 80%;
    animation-delay: 1.2s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(20px, -30px) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: translate(-15px, -50px) scale(0.8);
        opacity: 0.8;
    }
    75% {
        transform: translate(30px, -20px) scale(1.1);
        opacity: 0.9;
    }
}

/* Ícone central */
.center-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-shield {
    font-size: 50px;
    animation: iconRotate 3s linear infinite;
    filter: drop-shadow(0 0 10px rgba(255, 107, 0, 0.8));
}

.icon-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 107, 0, 0.5);
    border-radius: 50%;
    animation: ringRotate 4s linear infinite reverse;
}

@keyframes iconRotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes ringRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Pontos de verificação */
.check-points {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 6;
}

.check-point {
    width: 12px;
    height: 12px;
    position: relative;
}

.check-dot {
    width: 100%;
    height: 100%;
    background: rgba(255, 107, 0, 0.3);
    border-radius: 50%;
    position: absolute;
    animation: checkPulse 2s ease-in-out infinite;
}

.check-point.active .check-dot {
    background: #FF6B00;
    box-shadow: 0 0 10px #FF6B00;
    animation: checkPulseActive 1s ease-in-out infinite;
}

.check-line {
    position: absolute;
    width: 2px;
    height: 20px;
    background: rgba(255, 107, 0, 0.2);
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
}

.check-point:nth-child(1) {
    animation-delay: 0s;
}

.check-point:nth-child(2) {
    animation-delay: 0.7s;
}

.check-point:nth-child(3) {
    animation-delay: 1.4s;
}

@keyframes checkPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

@keyframes checkPulseActive {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.3);
    }
}

/* Efeito de brilho */
.glow-effect {
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: radial-gradient(
        circle,
        rgba(255, 107, 0, 0.2) 0%,
        transparent 70%
    );
    animation: glowRotate 5s linear infinite;
    z-index: 1;
}

@keyframes glowRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.validation-progress {
    margin-top: 25px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 107, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FF6B00, #FF8C00, #FFA500);
    border-radius: 10px;
    animation: progressFill 3s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.6);
}

@keyframes progressFill {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
}

.validation-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

.validation-dots span {
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #FF6B00, #FF8C00);
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
}

.validation-dots span:nth-child(1) {
    animation-delay: 0s;
}

.validation-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.validation-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0.8) translateY(0);
        opacity: 0.6;
    }
    40% {
        transform: scale(1.3) translateY(-8px);
        opacity: 1;
    }
}

.validation-subtitle {
    color: #64748b;
    font-size: 13px;
    margin-top: 5px;
    animation: textPulse 2s ease-in-out infinite;
    font-weight: 400;
}

@keyframes textPulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

.success-icon {
    margin-bottom: 24px;
    animation: successBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.continue-button {
    margin-top: 32px;
    width: 100%;
    max-width: 280px;
}

/* Responsividade */
/* Responsividade */
@media (max-width: 480px) {
    body {
        padding: 12px;
    }
    
    .container {
        max-width: 100%;
    }
    
    .screen {
        border-radius: 20px;
    }
    
    .logo-container {
        padding: 40px 20px;
    }
    
    .logo-text {
        font-size: 28px;
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .logo-cade {
        font-size: 0.85em;
        letter-spacing: 2px;
    }
    
    .logo-guincho {
        font-size: 1em;
        letter-spacing: 3px;
    }
    
    .form-container {
        padding: 36px 24px;
    }
    
    h2 {
        font-size: 26px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    input {
        padding: 14px 18px;
        font-size: 15px;
    }
    
    button {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .validation-animation {
        width: 240px;
        height: 240px;
    }
    
    .icon-shield {
        font-size: 40px;
    }
    
    .pulse-1 {
        width: 80px;
        height: 80px;
    }
    
    .pulse-2 {
        width: 120px;
        height: 120px;
    }
    
    .pulse-3 {
        width: 160px;
        height: 160px;
    }
    
    .particle {
        width: 5px;
        height: 5px;
    }
}


