@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&display=swap');

:root {
    /* PALHETA DE CORES DO PROJETO */
    --primary-color: #5a3ea1;
    --secondary-color: #000;
    --third-color: #cdcdcd;
    --fourth-color: #8d47bb;
    --fifth-color: #fff;

    --box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.08);
    --transition: all 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
}

body {
    scrollbar-width: none; 
    -ms-overflow-style: none;
    overflow-y: scroll;
}
  
body::-webkit-scrollbar {
    display: none;
}

.gradient-bg {
    background: linear-gradient(135deg, #000000 0%, #2c2c2c 50%, #5a3ea1 100%);
}

.dropdown-menu {
    overflow: visible !important;
}

.drag-area {
    border: 3px dashed #5a3ea1;
    transition: all 0.3s ease;
}

.drag-area.dragover {
    border-color: #ffffff;
    background-color: rgba(90, 62, 161, 0.1);
    transform: scale(1.02);
}

.modal {
    backdrop-filter: blur(10px);
}

.page.active {
    display: block;
}

.btn-primary {
    background: linear-gradient(135deg, #5a3ea1, #7c3aed);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(90, 62, 161, 0.3);
}

.auth-form {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-form.slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
}

.auth-form.slide-in-right {
    transform: translateX(0);
    opacity: 1;
}

.auth-form.slide-out-right {
    transform: translateX(100%);
    opacity: 0;
}

.auth-form.slide-in-left {
    transform: translateX(0);
    opacity: 1;
}

/*Auth Form Animations */
.auth-form-modern {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Floating Animation for Background Elements */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Accessibility: Skip link (visible on focus) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: 0.75rem 1rem;
    background: #111827; /* gray-900 */
    color: #fff;
    border-radius: 0.5rem;
    z-index: 9999;
}

/* Accessibility: reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .animate-blob { animation: none !important; }
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Tab Active State */
.tab-active {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Input Focus Glow */
.input-glow:focus {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

/*
* Custom Checkbox Styles 
*/

.custom-checkbox {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: relative;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border: 2px solid #d1d5db;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.checkmark::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 6px;
    border: 2px solid white;
    border-top: none;
    border-right: none;
    transform: rotate(-45deg) scale(0);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
}

.custom-checkbox input[type="checkbox"]:checked+.checkmark {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    border-color: #8b5cf6;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.custom-checkbox input[type="checkbox"]:checked+.checkmark::before {
    transform: rotate(-45deg) scale(1);
    opacity: 1;
}

.custom-checkbox:hover .checkmark {
    border-color: #8b5cf6;
    transform: scale(1.02);
}

.custom-checkbox input[type="checkbox"]:checked:hover+.checkmark {
    transform: scale(1.08);
}

/* Ripple Effect */
.checkmark::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.2);
    transform: scale(0);
    transition: transform 0.3s ease;
}

.custom-checkbox input[type="checkbox"]:checked+.checkmark::after {
    transform: scale(2);
    opacity: 0;
}

/* Label Animation */
.checkbox-label {
    margin-left: 12px;
    color: #374151;
    font-weight: 500;
    transition: color 0.3s ease;
}

.custom-checkbox input[type="checkbox"]:checked~.checkbox-label {
    color: #8b5cf6;
}

/* Different Styles */
.style-rounded .checkmark {
    border-radius: 50%;
}

.style-large .checkmark {
    width: 32px;
    height: 32px;
}

.style-large .checkmark::before {
    width: 14px;
    height: 8px;
}

.style-gradient .checkmark {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
}

.style-gradient input[type="checkbox"]:checked+.checkmark {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

/* Toggle Switch Style */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
    background: #d1d5db;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.toggle-switch::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-checkbox input[type="checkbox"]:checked~.toggle-switch {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

.custom-checkbox input[type="checkbox"]:checked~.toggle-switch::before {
    transform: translateX(26px);
}

/* === Daltonism filters === */
.filter-protanopia { filter: url(#protanopia); }
.filter-deuteranopia { filter: url(#deuteranopia); }
.filter-tritanopia { filter: url(#tritanopia); }
.filter-protanomaly { filter: url(#protanomaly); }
.filter-deuteranomaly { filter: url(#deuteranomaly); }
.filter-tritanomaly { filter: url(#tritanomaly); }
.filter-achromatopsia { filter: grayscale(100%); }
.filter-achromatomaly { filter: grayscale(50%) contrast(1.2); }
  