:root {
    --smartdex-green: #00D084;
    --smartdex-gray: #4A4A4A;
    --smartdex-light-gray: #F5F5F5;
    --smartdex-dark-green: #00B875;
    --smartdex-white: #FFFFFF;
    --smartdex-border: #E0E0E0;
    --smartdex-text: #333333;
    --smartdex-text-light: #666666;
}

* {
    font-family: 'Inter', sans-serif;
}

html {
    font-size: 14px;
}

body {
    margin: 0;
    background-color: var(--smartdex-light-gray);
    color: var(--smartdex-text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header and Navigation */
.navbar {
    background-color: var(--smartdex-white) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 208, 132, 0.25);
}

.smartdex-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--smartdex-green);
    position: relative;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 208, 132, 0.3);
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 8px;
    width: 24px;
    height: 28px;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 100%);
    border-radius: 2px;
    box-shadow: 
        0 0 0 1px rgba(255,255,255,0.2),
        inset 0 1px 0 rgba(255,255,255,0.4);
}

.logo-icon::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 4px;
    right: 4px;
    height: 2px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 1px;
}

.logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.smart {
    color: var(--smartdex-gray);
}

.dex {
    color: var(--smartdex-green);
}

/* Minimal Container */
.minimal-container {
    min-height: 100vh;
    background-color: var(--smartdex-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

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

/* Logo Header */
.logo-header {
    text-align: center;
    margin-bottom: 2rem;
}

.smartdex-logo {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.logo-message {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 1rem;
    margin-bottom: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Container 3D */
.logo-container {
    position: relative;
    width: 60px;
    height: 40px;
    transform-style: preserve-3d;
}

.container-front {
    position: absolute;
    width: 60px;
    height: 40px;
    display: flex;
    border: 3px solid #00D084;
    background: transparent;
}

.container-side {
    position: absolute;
    width: 20px;
    height: 40px;
    left: 45px;
    top: 10px;
    display: flex;
    border: 3px solid #00D084;
    border-left: none;
    background: transparent;
    transform: skewY(-20deg);
}

.red-panel {
    width: 18px;
    height: 100%;
    background: #DC2626;
    border-right: 2px solid #00D084;
}

.green-bar {
    width: 4px;
    height: 100%;
    background: #00D084;
}

.container-base {
    position: absolute;
    width: 70px;
    height: 8px;
    bottom: -8px;
    left: -5px;
    background: #00D084;
    transform: skewX(-20deg);
}

/* Logo Text */
.logo-text {
    position: relative;
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
    line-height: 1;
}

.smart-text {
    color: #374151;
}

.dex-text {
    color: #00D084;
}

.red-background {
    position: absolute;
    top: -8px;
    left: -10px;
    right: -10px;
    bottom: -8px;
    background: #DC2626;
    border-radius: 8px;
    z-index: -1;
    transform: skewY(-2deg);
}

/* Mobile Header */
.mobile-header {
    margin-bottom: 2rem;
}

.smartdex-logo-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.logo-icon-mobile {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--smartdex-green) 0%, var(--smartdex-dark-green) 100%);
    border-radius: 12px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 208, 132, 0.3);
}

.logo-icon-mobile::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 10px;
    width: 28px;
    height: 32px;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 100%);
    border-radius: 3px;
    box-shadow: 
        0 0 0 1px rgba(255,255,255,0.2),
        inset 0 1px 0 rgba(255,255,255,0.4);
}

.logo-text-mobile {
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
}

.mobile-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--smartdex-text);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.mobile-subtitle {
    font-size: 1.1rem;
    color: var(--smartdex-text-light);
    margin-bottom: 0;
    font-weight: 400;
}

/* Minimal Field Container */
.minimal-field {
    margin-bottom: 1.5rem;
}

/* Minimal Label */
.minimal-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Minimal Input Styles */
.minimal-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--smartdex-white);
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Estilo específico para select */
.minimal-input[type="select"], 
.minimal-input select,
select.minimal-input {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

.minimal-input:focus {
    outline: none;
    border-color: #ccc;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.minimal-input::placeholder {
    color: #999;
}


.minimal-error {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Minimal Button */
.minimal-btn {
    width: 100%;
    background: #87c81c;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 2px 4px rgba(135, 200, 28, 0.2);
}

.minimal-btn:hover {
    background: #7ab319;
    box-shadow: 0 4px 8px rgba(135, 200, 28, 0.3);
    transform: translateY(-1px);
}

.minimal-btn:active {
    background: #6fa015;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(135, 200, 28, 0.2);
}

.minimal-btn:disabled {
    background: #b8d96a;
    color: #ffffff;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Minimal Footer */
.minimal-footer {
    text-align: center;
    padding: 2rem 0 0 0;
    background-color: transparent;
}

.minimal-privacy {
    color: #999;
    font-size: 0.875rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.card-header {
    background: linear-gradient(135deg, var(--smartdex-green) 0%, var(--smartdex-dark-green) 100%);
    color: var(--smartdex-white);
    border: none;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(30deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(30deg); }
}

.card-header h2 {
    margin: 0;
    font-weight: 700;
    font-size: 1.875rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-header p {
    margin: 0.75rem 0 0 0;
    opacity: 0.9;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
    font-weight: 400;
}

.card-body {
    padding: 3rem;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--smartdex-green) 0%, var(--smartdex-dark-green) 100%) !important;
}

/* Modern Input Styles */
.modern-input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.1rem;
    z-index: 2;
    pointer-events: none;
}

.modern-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    min-height: 56px;
    box-sizing: border-box;
}

.modern-input:focus {
    outline: none;
    border-color: var(--smartdex-green);
    background-color: var(--smartdex-white);
    box-shadow: 0 0 0 3px rgba(0, 208, 132, 0.1);
}

.modern-input::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

.modern-input:focus + .input-icon {
    color: var(--smartdex-green);
}

.modern-error {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
    padding-left: 3rem;
}

.form-control {
    border: 2px solid var(--smartdex-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--smartdex-white);
}

.form-control:focus {
    border-color: var(--smartdex-green);
    box-shadow: 0 0 0 0.25rem rgba(0, 208, 132, 0.15);
    background-color: var(--smartdex-white);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: var(--smartdex-text-light);
    opacity: 0.7;
}

.input-group-text {
    background-color: var(--smartdex-light-gray);
    border: 2px solid var(--smartdex-border);
    border-right: none;
    color: var(--smartdex-green);
}

.input-group .form-control {
    border-left: none;
}

.input-group .form-control:focus {
    border-left: none;
    box-shadow: 0 0 0 0.25rem rgba(0, 208, 132, 0.15);
}

/* Modern Button */
.modern-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--smartdex-green) 0%, var(--smartdex-dark-green) 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 208, 132, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

.modern-btn::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;
}

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

.modern-btn:hover {
    background: linear-gradient(135deg, var(--smartdex-dark-green) 0%, var(--smartdex-green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 208, 132, 0.4);
}

.modern-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 208, 132, 0.3);
}

.modern-btn:disabled {
    background: #6c757d;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.modern-btn:disabled::before {
    display: none;
}

/* Mobile Alert Styles */
.alert {
    border: none;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideInDown 0.3s ease;
    font-size: 0.95rem;
}

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

.alert-success {
    background: rgba(0, 208, 132, 0.1);
    color: var(--smartdex-dark-green);
    border-left: 4px solid var(--smartdex-green);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background: rgba(13, 202, 240, 0.1);
    color: #0d6efd;
    border-left: 4px solid #0d6efd;
}

.alert i {
    font-size: 1.1rem;
}

/* Mobile Footer */
.mobile-footer {
    margin-top: 2rem;
}

.mobile-disclaimer {
    font-size: 0.9rem;
    color: var(--smartdex-text-light);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.mobile-disclaimer i {
    color: var(--smartdex-green);
}

/* Mobile Footer Bottom */
.mobile-footer-bottom {
    background-color: var(--smartdex-white);
    border-top: 1px solid #e9ecef;
    padding: 1rem 0;
    margin-top: auto;
}

.mobile-footer-bottom small {
    font-size: 0.8rem;
    color: var(--smartdex-text-light);
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

/* Footer */
.footer {
    background-color: var(--smartdex-white);
    border-top: 1px solid var(--smartdex-border);
    margin-top: 3rem;
    padding: 1rem 0;
    text-align: center;
    color: var(--smartdex-text-light);
}

/* Minimal Responsive Design */
@media (max-width: 480px) {
    .minimal-container {
        padding: 1.5rem 0.75rem;
    }
    
    .minimal-content {
        max-width: 100%;
    }
    
    .logo-header {
        margin-bottom: 1.5rem;
    }
    
    .logo-message {
        font-size: 0.9rem;
        margin-top: 0.75rem;
    }
    
    .smartdex-logo {
        gap: 0.75rem;
    }
    
    .logo-container {
        width: 50px;
        height: 32px;
    }
    
    .container-front {
        width: 50px;
        height: 32px;
    }
    
    .container-side {
        width: 16px;
        height: 32px;
        left: 37px;
        top: 8px;
    }
    
    .red-panel {
        width: 15px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .minimal-field {
        margin-bottom: 1.25rem;
    }
    
    .minimal-label {
        font-size: 0.9rem;
        margin-bottom: 0.375rem;
    }
    
    .minimal-input {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
    
    .minimal-btn {
        padding: 0.875rem;
        font-size: 0.95rem;
        font-weight: 600;
    }
    
    .minimal-footer {
        padding: 1.5rem 0 0 0;
    }
    
    .minimal-privacy {
        font-size: 0.8rem;
    }
}

@media (max-width: 375px) {
    .minimal-container {
        padding: 1rem 0.5rem;
    }
    
    .logo-header {
        margin-bottom: 1.25rem;
    }
    
    .logo-message {
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }
    
    .smartdex-logo {
        gap: 0.5rem;
    }
    
    .logo-container {
        width: 40px;
        height: 28px;
    }
    
    .container-front {
        width: 40px;
        height: 28px;
    }
    
    .container-side {
        width: 14px;
        height: 28px;
        left: 30px;
        top: 6px;
    }
    
    .red-panel {
        width: 12px;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .minimal-field {
        margin-bottom: 1rem;
    }
    
    .minimal-label {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }
    
    .minimal-input {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .minimal-btn {
        padding: 0.75rem;
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    .minimal-error {
        font-size: 0.8rem;
        margin-top: 0.125rem;
    }
    
    .minimal-footer {
        padding: 1.25rem 0 0 0;
    }
    
    .minimal-privacy {
        font-size: 0.75rem;
    }
}

/* Animation for form elements */
.form-control, .btn-primary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--smartdex-light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--smartdex-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--smartdex-dark-green);
}

/* OCULTAR TODAS AS MENSAGENS DE VALIDAÇÃO GLOBALMENTE */
.field-validation-error,
.field-validation-valid,
.input-validation-error,
.validation-summary-errors,
.validation-summary-valid,
.text-danger,
.error,
.invalid-feedback,
.validation-message,
.minimal-error,
.modern-error,
.alert,
.alert-danger,
.alert-warning,
.alert-info,
.alert-success,
span[data-valmsg-for],
.tooltip,
.tooltip-inner,
.bs-tooltip-top,
.bs-tooltip-bottom,
.bs-tooltip-start,
.bs-tooltip-end,
.arrow,
*[class*="validation"],
*[class*="error"],
*[class*="tooltip"],
*[class*="alert"],
*[class*="invalid"],
*[class*="danger"],
*[class*="warning"],
*[class*="info"],
*[class*="success"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

/* Ocultar qualquer elemento que contenha mensagens de validação */
*:contains("É preciso que o formato corresponda ao exigido"),
*:contains("formato corresponda ao exigido"),
*:contains("formato corresponda"),
*:contains("corresponda ao exigido"),
*:contains("formato"),
*:contains("corresponda"),
*:contains("obrigatório"),
*:contains("obrigatória"),
*:contains("inválido"),
*:contains("inválida"),
*:contains("incorreto"),
*:contains("incorreta"),
*:contains("erro"),
*:contains("Erro") {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
}
