@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@400;600;800&display=swap');
body {
    background: linear-gradient(135deg, #1e1b4b, #312e81, #155e75);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Urbanist', sans-serif;
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
    animation: bgGradient 15s ease infinite;
    touch-action: manipulation;
}
@keyframes bgGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1%, transparent 8%);
    animation: particleFloat 25s linear infinite;
}
@keyframes particleFloat {
    0% { background-position: 0 0; }
    100% { background-position: 80px 80px; }
}
#loginModalUnique2025, #registerModalUnique2025, .confirm-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 1000;
    width: 90%;
    max-width: 500px;
    background: linear-gradient(145deg, rgba(31, 41, 55, 0.95), rgba(55, 65, 81, 0.85));
    border-radius: 1rem;
    box-shadow: 0 0 40px rgba(45, 212, 191, 0.5);
    border: 1px solid rgba(45, 212, 191, 0.3);
    animation: borderGlow 3s linear infinite;
    max-height: calc(100vh - 5.5rem);
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: none;
}
#loginModalUnique2025.active, #registerModalUnique2025.active, .confirm-modal.active {
    opacity: 1;
    display: block;
    transform: translateX(-50%) scale(1);
}
.modal {
    transition: opacity 0.3s ease;
    opacity: 0;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    border-radius: 1rem;
    background: linear-gradient(145deg, rgba(31, 41, 55, 0.95), rgba(55, 65, 81, 0.85));

    box-shadow: 0 0 40px rgba(45, 212, 191, 0.5);
    border: 1px solid rgba(45, 212, 191, 0.3);
    animation: borderGlow 3s linear infinite;
    max-height: calc(100vh - 5.5rem);
    overflow-y: auto;
    overflow-x: hidden;
    width: 90%;
    max-width: 500px;
    display: none;
}
.modal.active {
    opacity: 1;
    display: block;
}
.modal-content {
    padding: 1.5rem;
    max-height: calc(100vh - 6rem);
    overflow-y: hidden;
}
@keyframes borderGlow {
    0% { border-color: rgba(45, 212, 191, 0.8); }
    50% { border-color: rgba(139, 92, 246, 0.8); }
    100% { border-color: rgba(45, 212, 191, 0.8); }
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999;
    display: none;

}
.modal-overlay.active {
    display: block;
}
.banner-img {
    animation: fadeIn 1.2s ease-in-out;
    border-radius: 0.75rem;
    width: 100%;
    height: 100px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.banner-img:hover {
    transform: translateY(-5px);
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.glow {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4), 0 0 30px rgba(45, 212, 191, 0.3);
}
.jogar-modal {
    background: linear-gradient(45deg, #22d3ee, #10b981);
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.6), 0 0 20px rgba(16, 185, 129, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
}
.jogar-modal.active {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
    100% { transform: translateX(-50%) scale(1); }
}
.footer-modal {
    background: linear-gradient(45deg, #1f2937, #374151);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.close-btn {
    transition: all 0.4s ease;
    position: absolute;
    top: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    padding: 0.6rem;
    z-index: 1001;
    cursor: pointer;
}
.close-btn:hover {
    transform: translateX(-50%) scale(1.3) rotateY(360deg);
    filter: drop-shadow(0 0 15px #22d3ee);
}
.close-btn svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: #ffffff;
}
.input-container {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}
.input-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e2e8f0;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.input-label .input-icon {
    color: #2dd4bf;
    font-size: 1rem;
}
.input-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-family: 'Urbanist', sans-serif;
    font-size: 0.9rem;
    padding: 0.75rem 2.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(45, 212, 191, 0.3);
    transition: all 0.3s ease;
    touch-action: manipulation;
}
.input-field:focus {
    border-color: #2dd4bf;
    box-shadow: 0 0 10px rgba(45, 212, 191, 0.5);
    background: rgba(255, 255, 255, 0.15);
}
.input-field::placeholder {
    color: #94a3b8;
}
.input-field:-webkit-autofill,
.input-field:-webkit-autofill:hover,
.input-field:-webkit-autofill:focus,
.input-field:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.1) inset !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(45, 212, 191, 0.3) !important;
}
.input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    fill: #ffffff;
    color: #2dd4bf;
    font-size: 1rem;
    transition: transform 0.3s ease;
}
.input-field:focus + .input-icon {
    transform: translateY(-50%) scale(1.2);
}
.username-status-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    transition: opacity 0.3s ease;
    opacity: 0;
}
.username-status-icon.visible {
    opacity: 1;
}
.username-status-icon.color-success {
    color: #16a34a;
}
.username-status-icon.color-error {
    color: #ef4444;
}
.toggle-eye-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.75rem;
    cursor: pointer;
    transition: color 0.3s ease;
    display: none;
}
.toggle-eye-icon.visible {
    display: block;
}
.toggle-eye-icon:hover {
    color: #2dd4bf;
}
.password-strength-container {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: none;
    align-items: center;
    gap: 0.5rem;
}
.password-strength-container.visible {
    display: flex;
}
.strength-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #e5e7eb;
}
.strength-bars {
    display: flex;
    gap: 4px;
    flex-grow: 1;
}
.strength-bar {
    height: 8px;
    border-radius: 4px;
    background-color: #4b5563;
    flex: 1;
    transition: background-color 0.3s ease;
}
.strength-weak .strength-bar.active { background-color: #ef4444; }
.strength-medium .strength-bar.active { background-color: #f59e0b; }
.strength-good .strength-bar.active { background-color: #3b82f6; }
.strength-strong .strength-bar.active { background-color: #16a34a; }
.mismatch-error {
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background-color: #ef4444;
    color: white;
    margin-top: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: none;
}
.confirm-password-container {
    display: none;
}
.confirm-password-container.visible {
    display: block;
}
.email-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}
.submit-button {
    background: linear-gradient(45deg, #4b5563, #6b7280);
    color: #ffffff;
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 0 15px rgba(45, 212, 191, 0.5);
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
}
.submit-button.enabled {
    background: linear-gradient(45deg, #2dd4bf, #8b5cf6);
}
.submit-button:disabled {
    background: rgba(75, 85, 99, 0.5);
    border: 1px solid #4b5563;
    color: #9ca3af;
    cursor: not-allowed;
}
.submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.7);
}
.submit-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}
.submit-button:hover::after {
    width: 200%;
    height: 200%;
}
.submit-button.loading {
    pointer-events: none;
}
.button-text {
    transition: opacity 0.3s ease;
}
.button-text.hidden {
    opacity: 0;
    display: none;
}
.loading-dots-button {
    display: none;
    font-size: 1.5rem;
    color: #ffffff;
    position: absolute;
}
.loading-dots-button.visible {
    display: inline-block;
}
.loading-dots-button span {
    display: inline-block;
    animation: jump 0.6s infinite;
}
.loading-dots-button span:nth-child(2) {
    animation-delay: 0.2s;
}
.loading-dots-button span:nth-child(3) {
    animation-delay: 0.4s;
}
@keyframes jump {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.confirm-modal {
    background: linear-gradient(145deg, rgba(31, 41, 55, 0.95), rgba(55, 65, 81, 0.85));
    color: #ffffff;
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.5);
    text-align: center;
}
.confirm-modal p {
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.confirm-modal p br {
    display: block;
}
.modal-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.1) 1%, transparent 5%);
    animation: particleFloat 15s linear infinite;
}
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 1rem auto;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.5);
    background: linear-gradient(45deg, rgba(31, 41, 55, 0.8), rgba(55, 65, 81, 0.8));
}
.carousel {
    position: relative;
    height: 200px;
}
.carousel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.carousel img.active {
    opacity: 1;
}
.carousel img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(45, 212, 191, 0.7);
}
.carousel-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.1) 1%, transparent 5%);
    animation: particleFloat 10s linear infinite;
}
.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}
.carousel-nav button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
}
.carousel-nav button:hover {
    background: rgba(45, 212, 191, 0.8);
    transform: scale(1.2);
}
.carousel-indicators {
    position: absolute;
    bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}
.carousel-indicators span {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}
.carousel-indicators span.active {
    background: #2dd4bf;
    box-shadow: 0 0 10px rgba(45, 212, 191, 0.8);
}
.confirm-image-container {
    background: linear-gradient(45deg, #2dd4bf, #8b5cf6);
    border-radius: 0.75rem;
    padding: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 0 15px rgba(45, 212, 191, 0.5);
}
.confirm-image-container img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}
.confirm-button {
    background: linear-gradient(45deg, #2dd4bf, #8b5cf6);
    color: #ffffff;
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 0 15px rgba(45, 212, 191, 0.5);
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    touch-action: manipulation;
}
.confirm-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.7);
}
.confirm-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}
.confirm-button:hover::after {
    width: 200%;
    height: 200%;
}
@media (max-width: 640px) {
    #loginModalUnique2025, #registerModalUnique2025, .confirm-modal {
        width: 90%;
        max-width: 90%;
        top: calc(4rem + 1.5rem);
    }
    .banner-img {
        height: 80px;
    }
    .text-3xl {
        font-size: 1.25rem;
    }
    .close-btn {
        top: -2rem;
        padding: 0.4rem;
    }
    .close-btn svg {
        width: 1.2rem;
        height: 1.2rem;
    }
    .carousel {
        height: 150px;
    }
    .carousel img {
        height: 150px;
    }
}