@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap");

/* Variables and colors */
:root {
    --primary-color: #0a0a0ae0;
    --primary-light: #939393;
    --primary-dark: #525252;
    --secondary-color: #ffd400;
    --secondary-light: #434343;
    --secondary-dark: #4f4f4f;
    --text-on-primary: #ffffff;
    --text-on-secondary: #111111;
    --bg-color: #111111;
    --card-bg: #1a1a1a;
    --border-color: #3b3f43;
    --success-color: #4caf50;
    --error-color: #f44336;
    --neutral-color: #5a5a5a;
    --light-gray: #393939;
    --medium-gray: #cccccc;
    --dark-gray: #e0e0e0;
    --ring-color-1: #ffd400;
    --ring-color-2: #ff9800;
    --ring-color-3: #ffeb3b;
}

/* ===== ANIMATIONS AND TRANSITIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; height: 0; margin: 0; padding: 0; border: 0; }
}

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

@keyframes slideInRight {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* NEW ANIMATIONS FOR TRANSITIONS */
@keyframes scaleOut {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0.7);
        opacity: 0;
    }
}

@keyframes fadeOutRotate {
    from {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5) rotate(20deg);
    }
}

@keyframes spinFadeIn {
    from {
        transform: rotate(-180deg) scale(0.3);
        opacity: 0;
    }
    to {
        transform: rotate(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideFromLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideFromRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes pulseHighlight {
    0% {
        box-shadow: 0 0 5px rgba(255, 212, 0, 0);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 212, 0, 0.5);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 212, 0, 0);
    }
}

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

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

@keyframes spinner {
    to { transform: translateY(-50%) rotate(360deg); }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes loadingDots {
    0%, 100% {
        content: "";
    }
    25% {
        content: ".";
    }
    50% {
        content: "..";
    }
    75% {
        content: "...";
    }
}

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

/* Reset e estilos globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Quicksand", sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-color);
    color: var(--dark-gray);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    width: 100%;
    min-height: 100vh;
    overflow: hidden; /* Prevent scrolling */
    animation: fadeIn 0.8s ease-out;
    transition: background 0.5s ease;
}

/* Page transition states */
body.page-exit {
    background: var(--primary-color);
    transition: background 0.8s ease;
}

body.page-enter .login {
    animation: scaleIn 0.5s ease-in-out forwards;
}

body.page-enter .ring {
    animation: fadeIn 1.2s ease-out;
}

/* Special style for register page to allow scrolling */
body.register-page {
    height: auto; /* Allow content to determine height */
    min-height: 100vh;
    overflow-y: auto; /* Enable vertical scrolling */
    padding: 20px 0; /* Add some padding for better spacing */
}

/* Transition overlay */
.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 9998;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
}

.transition-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.loading-container {
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 212, 0, 0.1);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    color: var(--dark-gray);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
}

.dot-animation::after {
    content: "";
    animation: loadingDots 1.5s infinite;
    display: inline-block;
    width: 20px;
    text-align: left;
}

/* Alerta de manutenção */
.maintenance-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    animation: slideInRight 0.5s ease-out forwards;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.maintenance-alert:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transform: translateX(-50%) translateY(-3px);
}

.maintenance-alert strong {
    font-weight: 600;
}

.alert-icon {
    margin-right: 6px;
    animation: bounce 2s infinite;
}

.maintenance-details {
    font-size: 13px;
    display: block;
}

.backto-maintenance {
    color: #856404;
    font-size: 13px;
    text-decoration: underline;
    display: inline-block;
    margin-top: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.backto-maintenance::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #856404;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.backto-maintenance:hover {
    text-decoration: none;
}

.backto-maintenance:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Ring animation - CORRIGIDO PARA RESPONSIVIDADE */
.ring {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(500px, 80vw);
    height: min(500px, 80vw);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: -1;
    animation: fadeIn 1.2s ease-out;
}

.ring i {
    position: absolute;
    inset: 0;
    border: 2px solid #fff;
    transition: 0.5s;
    z-index: -1;
    opacity: 0.8;
}

.ring i:nth-child(1) {
    border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
    animation: animate 6s linear infinite;
    border-color: var(--ring-color-1);
    --clr: var(--ring-color-1);
}

.ring i:nth-child(2) {
    border-radius: 41% 44% 56% 59%/38% 62% 63% 37%;
    animation: animate 4s linear infinite;
    border-color: var(--ring-color-2);
    --clr: var(--ring-color-2);
}

.ring i:nth-child(3) {
    border-radius: 41% 44% 56% 59%/38% 62% 63% 37%;
    animation: animate2 10s linear infinite;
    border-color: var(--ring-color-3);
    --clr: var(--ring-color-3);
}

.ring:hover i {
    border: 6px solid var(--clr);
    filter: drop-shadow(0 0 20px var(--clr));
    transition: all 0.3s ease-in-out;
}

/* Login container - CORRIGIDO POSICIONAMENTO DA LOGO */
.login {
    width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    z-index: 2;
    padding: 20px;
    animation: scaleIn 0.5s ease-out forwards;
}

.logo-img {
    position: relative;
    height: 60px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    z-index: 2;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.logo-img:hover {
    transform: translateY(-5px);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.login h2 {
    font-size: 1.8em;
    color: #fff;
    margin-bottom: 10px;
    text-align: center;
    position: relative;
}

.login h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
    transform: translateX(-50%) scaleX(0);
    transition: transform 0.5s ease;
}

.login h2:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Form elements */
#loginForm {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2;
}

.inputBx {
    position: relative;
    width: 100%;
    transition: all 0.3s ease;
}

.inputBx:hover {
    transform: translateY(-2px);
}

.inputBx input {
    position: relative;
    width: 100%;
    padding: 12px 20px;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 40px;
    font-size: 1.1em;
    color: #fff;
    box-shadow: none;
    outline: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.inputBx input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.inputBx input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(255, 212, 0, 0.3);
    transform: translateY(-1px);
}

.inputBx input[type="submit"] {
    background: linear-gradient(45deg, var(--ring-color-2), var(--ring-color-1));
    border: none;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-on-secondary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.inputBx input[type="submit"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 70%);
    transform: translateX(-100%);
}

.inputBx input[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 212, 0, 0.3);
    animation: pulseHighlight 2s infinite;
}

.inputBx input[type="submit"]:hover::after {
    transform: translateX(100%);
    transition: transform 0.7s ease;
}

.inputBx input[type="submit"]:active {
    transform: translateY(0);
}

.inputBx input[type="submit"].loading,
.inputBx input[type="submit"]:disabled {
    opacity: 0.8;
    cursor: wait;
    animation: none;
    box-shadow: none;
    transform: none;
}

/* Remember me and links */
.remember-forgot {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    margin-top: -5px;
    margin-bottom: -5px;
}

.remember-me {
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.remember-me:hover {
    transform: translateY(-2px);
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
    transition: all 0.2s ease;
}

.remember-me input[type="checkbox"]:checked {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    animation: scaleIn 0.2s ease;
}

.remember-me input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    animation: fadeIn 0.2s ease;
}

.remember-me label {
    font-size: 14px;
    color: var(--dark-gray);
    cursor: pointer;
    transition: all 0.2s ease;
}

.remember-me:hover label {
    color: var(--secondary-color);
}

.links {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 2;
}

.links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.3s ease;
    position: relative;
    padding: 3px 0;
}

.links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.links a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 5px rgba(255, 212, 0, 0.5);
    transform: translateY(-2px);
}

.links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Error and success messages - CORRIGIDO ESPAÇO EXCESSIVO */
.error-message,
.success-message {
    text-align: center;
    font-size: 14px;
    width: 100%;
    z-index: 2;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease;
    line-height: 1.4;
    padding: 0;
    margin: 0;
}

/* Adiciona espaçamento apenas quando há conteúdo */
.error-message:not(:empty),
.success-message:not(:empty) {
    padding: 8px 0;
    margin: 5px 0;
}

.error-message {
    color: var(--error-color);
}

.success-message {
    color: var(--success-color);
}

/* Credits section */
.credits {
    margin-top: 20px;
    width: 100%;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 12px;
    color: var(--medium-gray);
    text-align: center;
    z-index: 5;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.credits:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.app-version {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--secondary-color);
    transition: all 0.2s ease;
}

.credits:hover .app-version {
    transform: scale(1.05);
}

.developer-info {
    margin-top: 8px;
    font-size: 11px;
    transition: all 0.2s ease;
}

.developer-info a {
    color: var(--secondary-color);
    text-decoration: none;
    position: relative;
    padding-bottom: 1px;
    transition: all 0.2s ease;
}

.developer-info a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.developer-info a:hover {
    text-shadow: 0 0 5px rgba(255, 212, 0, 0.5);
}

.developer-info a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Modal para atualização de dados */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(3px);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
    animation: fadeIn 0.3s ease;
}

.modal-container {
    width: 90%;
    max-width: 450px;
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    padding: 30px;
    transform: translateY(-30px);
    transition: transform 0.3s ease;
    max-height: 85vh;
    overflow-y: auto;
    color: var(--dark-gray);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: scaleIn 0.5s ease-out;
}

.modal-overlay.show .modal-container {
    transform: translateY(0);
}

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

.modal-title {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 5px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.modal-title:after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 20%;
    transform: scaleX(0.7);
    transition: transform 0.3s ease;
}

.modal-title:hover:after {
    transform: scaleX(1);
}

.modal-subtitle {
    color: var(--medium-gray);
    font-size: 16px;
    margin-top: 5px;
}

.modal-body {
    margin-bottom: 25px;
}

.modal-footer {
    text-align: center;
}

/* Modal form styles */
.input-group {
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.input-group:hover {
    transform: translateY(-2px);
}

.input-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--dark-gray);
    font-size: 14px;
    transition: all 0.2s ease;
}

.input-group:hover label {
    color: var(--secondary-color);
}

.required-field::after {
    content: "*";
    color: var(--error-color);
    margin-left: 4px;
    animation: fadeIn 0.3s ease;
}

.input-field {
    position: relative;
}

.input-field i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-size: 16px;
    transition: all 0.2s ease;
}

.input-field:hover i {
    transform: translateY(-50%) scale(1.1);
}

.input-field input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--dark-gray);
    position: relative;
    overflow: hidden;
}

.input-field input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.1);
    transform: translateY(-1px);
}

.info-text {
    font-size: 13px;
    color: var(--medium-gray);
    margin-top: 15px;
    transition: all 0.2s ease;
}

.input-group:hover .info-text {
    color: var(--dark-gray);
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, var(--ring-color-2), var(--ring-color-1));
    color: var(--text-on-secondary);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.btn-login::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 70%);
    transform: translateX(-100%);
}

.btn-login i {
    margin-right: 8px;
    transition: transform 0.2s ease;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 212, 0, 0.3);
    animation: pulseHighlight 2s infinite;
}

.btn-login:hover i {
    transform: translateX(-3px);
}

.btn-login:hover::after {
    transform: translateX(100%);
    transition: transform 0.7s ease;
}

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

.btn-login.loading {
    opacity: 0.8;
    cursor: wait;
    animation: none;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    color: var(--medium-gray);
    font-size: 18px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
}

.modal-close:hover {
    color: var(--error-color);
    background-color: rgba(244, 67, 54, 0.1);
    transform: rotate(90deg);
}

/* Estilos adicionais específicos para o registro */
.login-container {
    width: 100%;
    max-width: 400px;
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 2;
    animation: scaleIn 0.5s ease-out;
    transition: all 0.3s ease;
}

.login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.login-title {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.login-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
    transform: scaleX(0.7);
    transition: transform 0.3s ease;
}

.login-title:hover::after {
    transform: scaleX(1);
}

.login-subtitle {
    font-size: 16px;
    color: var(--medium-gray);
}

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

.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    position: relative;
    z-index: 2;
    padding: 10px;
    animation: fadeIn 0.8s ease-out;
}

/* Adjust ring positioning for register page */
.register-page .ring {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

/* Adjust container sizing for register page */
.register-page .login-container {
    margin: 20px auto;
    position: relative;
    z-index: 2;
}

/* Make sure the register form has appropriate spacing */
.register-page .login-wrapper {
    padding: 20px 10px;
}

/* Estilos específicos para o register.html */
.multi-input-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.multi-input-row .input-group {
    flex: 1;
    min-width: 140px;
}

select.form-control {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--dark-gray);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
}

select.form-control:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.1);
    transform: translateY(-2px);
}

select.form-control option {
    background-color: var(--card-bg);
    color: var(--dark-gray);
}

.avatar-upload {
    margin: 15px 0;
    text-align: center;
}

.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 10px auto;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.avatar-preview:hover {
    transform: scale(1.05);
    border-color: var(--secondary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.avatar-preview:hover img {
    transform: scale(1.1);
}

.avatar-preview .placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.avatar-preview:hover .placeholder {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.avatar-upload-btn {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--dark-gray);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.avatar-upload-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 70%);
    transform: translateX(-100%);
}

.avatar-upload-btn:hover {
    background-color: var(--secondary-color);
    color: var(--text-on-secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 212, 0, 0.3);
}

.avatar-upload-btn:hover::after {
    transform: translateX(100%);
    transition: transform 0.7s ease;
}

.avatar-upload input[type="file"] {
    display: none;
}

.avatar-upload-title {
    font-size: 14px;
    color: var(--medium-gray);
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.avatar-upload:hover .avatar-upload-title {
    color: var(--dark-gray);
}

.input-locked {
    background-color: rgba(255, 255, 255, 0.03) !important;
    color: rgba(255, 255, 255, 0.4) !important;
    cursor: not-allowed !important;
}

.input-field.searching::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.8s linear infinite;
}

.back-to-login {
    text-align: center;
    margin-top: 20px;
}

.back-to-login a {
    color: var(--dark-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    position: relative;
    padding: 5px;
}

.back-to-login a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.back-to-login a:hover {
    color: var(--secondary-color);
}

.back-to-login a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

.confirmation-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
}

.confirmation-content {
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 450px;
    padding: 30px;
    text-align: center;
    position: relative;
    transform: translateY(-20px);
    animation: slideIn 0.4s ease-out forwards;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.confirmation-icon {
    width: 70px;
    height: 70px;
    background-color: var(--success-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    animation: scaleIn 0.5s ease-out;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.confirmation-content:hover .confirmation-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

.confirmation-icon i {
    color: white;
    font-size: 36px;
}

.confirmation-title {
    font-size: 22px;
    color: var(--dark-gray);
    margin-bottom: 15px;
    font-weight: 600;
}

.confirmation-message {
    font-size: 16px;
    color: var(--medium-gray);
    line-height: 1.5;
    margin-bottom: 25px;
}

.confirmation-button {
    background: linear-gradient(45deg, var(--ring-color-2), var(--ring-color-1));
    color: var(--text-on-secondary);
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.confirmation-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 70%);
    transform: translateX(-100%);
}

.confirmation-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 212, 0, 0.3);
}

.confirmation-button:hover::after {
    transform: translateX(100%);
    transition: transform 0.7s ease;
}

.confirmation-button:active {
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes spinner {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Responsividade - AJUSTADA PARA MANTER CONSISTÊNCIA ENTRE 1014px E 1126px */

/* MUDANÇA PRINCIPAL: Media query alterada de 768px para 600px */
/* Isso garante que resoluções como 1014px e 1126px tenham o mesmo layout */
@media (max-width: 600px) {
    body {
        padding: 0;
    }
    
    .ring {
        width: min(70vw, 350px);
        height: min(70vw, 350px);
    }
    
    .login {
        width: 280px;
        padding: 15px;
    }
    
    .logo-img {
        height: 50px;
        margin-bottom: 15px;
    }
    
    .multi-input-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .multi-input-row .input-group {
        width: 100%;
    }
    
    .login-container {
        padding: 20px;
        max-width: 90%;
        margin: 0 auto;
    }
    
    .login-title {
        font-size: 20px;
    }
    
    .login-subtitle {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .ring {
        width: min(60vw, 280px);
        height: min(60vw, 280px);
    }
    
    .login {
        width: 100%;
        max-width: 250px;
        padding: 10px;
    }
    
    .logo-img {
        height: 45px;
        margin-bottom: 10px;
    }
    
    .login h2 {
        font-size: 1.5em;
    }
    
    .inputBx input {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    
    .links {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .credits {
        padding: 8px;
        margin-top: 10px;
        font-size: 10px;
        z-index: 5;
        background-color: rgba(26, 26, 26, 0.9);
    }
    
    .modal-container {
        padding: 15px;
    }
    
    .confirmation-content {
        padding: 15px;
    }
    
    .confirmation-icon {
        width: 50px;
        height: 50px;
    }
    
    .confirmation-title {
        font-size: 18px;
    }
    
    .confirmation-message {
        font-size: 14px;
    }
    
    .inputBx input,
    .btn-login,
    .input-field input,
    select.form-control {
        padding: 8px 15px;
    }
    
    .input-field i {
        font-size: 14px;
    }
}

