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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 450px;
    position: relative;
}

.capture-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.capture-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.logo-image {
    height: 80px;
    width: auto;
    border-radius: 12px;
    background: white;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.header p {
    font-size: 16px;
    color: #718096;
    font-weight: 400;
}

.form {
    margin-bottom: 20px;
}

.form-step {
    transition: all 0.4s ease;
}

.step-info {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

/* Ajuste quando header está oculto */
.header[style*="display: none"] + .form #step2 {
    margin-top: -20px;
}

.step-info i {
    font-size: 32px;
    color: #25D366;
    margin-bottom: 8px;
    display: block;
}

.step-info p {
    font-size: 16px;
    font-weight: 600;
    color: #25D366;
    margin-bottom: 8px;
}

.step-info small {
    font-size: 14px;
    color: #718096;
    font-weight: 400;
}

.step2-buttons {
    display: flex;
    gap: 12px;
}

.step2-buttons .submit-btn {
    flex: 1;
}

.btn-secondary {
    background: #e2e8f0 !important;
    color: #4a5568 !important;
}

.btn-secondary:hover {
    background: #cbd5e0 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

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

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

.input-icon {
    position: absolute;
    left: 16px;
    font-size: 20px;
    color: #25D366;
    z-index: 2;
}

.input-field {
    width: 100%;
    padding: 16px 16px 16px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 500;
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

.input-field:focus {
    border-color: #25D366;
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.success-message, .error-message {
    text-align: center;
    padding: 20px;
    border-radius: 16px;
    margin-top: 20px;
}

.success-message {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.success-message i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

.success-message h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.error-message {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
}

.error-message i {
    font-size: 24px;
    margin-right: 8px;
}

.info-message {
    text-align: center;
    padding: 16px 20px;
    border-radius: 16px;
    margin-top: 20px;
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
    animation: fadeIn 0.4s ease-out;
}

.info-message i {
    font-size: 20px;
    margin-right: 8px;
}

.info-message p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .capture-card {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .logo-image {
        height: 60px;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.capture-card {
    animation: fadeIn 0.6s ease-out;
}

.success-message, .error-message {
    animation: fadeIn 0.4s ease-out;
}
