/* Ajuste do body para remover scroll */
body.login-page {
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(to bottom right, #6B3CE3, #8E5AFF);
}

/* Efeitos espaciais */
.space-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.star {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: twinkle var(--duration) infinite ease-in-out;
}

.star-tiny {
    width: 2px;
    height: 2px;
    opacity: 0.9;
    animation: twinkle-tiny 3s infinite ease-in-out;
}

.star-small {
    width: 3px;
    height: 3px;
    opacity: 0.95;
    animation: twinkle-small 4s infinite ease-in-out;
}

.star-medium {
    width: 4px;
    height: 4px;
    opacity: 1;
    animation: twinkle-medium 5s infinite ease-in-out;
}

.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.1;
    background: rgba(255, 255, 255, 0.2);
    animation: nebulaPulse 8s infinite ease-in-out;
}

.nebula-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.nebula-2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: -150px;
    animation-delay: -4s;
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 0.7;
    }
    50% { 
        opacity: 1;
    }
}

@keyframes twinkle-tiny {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes twinkle-small {
    0%, 100% { opacity: 0.7; }
    30% { opacity: 1; }
    70% { opacity: 0.8; }
}

@keyframes twinkle-medium {
    0%, 100% { opacity: 0.7; }
    40% { opacity: 1; }
    60% { opacity: 0.9; }
}

@keyframes nebulaPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.15;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-50%) translateX(20px);
    }
}

/* Estrutura da página */
.page-content {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    padding: 0 5%;
    margin-top: 20px;
}

/* Ajuste do container de login */
.login-container {
    flex: 0 1 580px;
    margin-left: 80px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
    transform: scale(0.75);
    transform-origin: left center;
}

/* Ajuste da imagem flutuante */
.floating-image {
    position: fixed;
    right: 100px;
    top: 90%;
    transform: translateY(-50%);
    z-index: 1;
    width: 600px;
    pointer-events: none;
}

.floating-image img {
    width: 100%;
    max-width: 800px;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px 35px 35px; /* Padding ainda mais reduzido */
    width: 100%;
    max-width: 580px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.login-tabs {
    display: flex;
    margin-bottom: 15px; /* Reduzido de 20px */
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: rgba(255, 140, 0, 0.6);
    color: var(--white-color);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn i {
    font-size: 20px;
}

.tab-btn.active {
    background: var(--primary-color);
    color: var(--white-color);
}

.tab-btn[data-tab="aluno"]:not(.active) {
    background: rgba(255, 140, 0, 0.6);
}

.tab-btn[data-tab="professor"]:not(.active) {
    background: rgba(255, 140, 0, 0.6);
}

.login-form {
    display: none;
}

.login-form.active {
    display: block;
}

.login-form h2 {
    color: #000000;
    font-size: 22px;
    margin-bottom: 5px;
    letter-spacing: 0.5px; /* Adiciona espaçamento entre caracteres */
}

.login-form p {
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 20px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 10px; /* Reduzido de 12px */
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    overflow: hidden;
    padding: 8px 12px;
}

.input-icon {
    padding: 15px;
    color: rgba(0, 0, 0, 0.7);
    font-size: 18px;
}

.input-group input {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: #000000;
    font-size: 16px;
}

.input-group input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.toggle-password {
    padding: 15px;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.7);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px; /* Reduzido de 20px */
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.login-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: var(--primary-color);
    color: var(--white-color);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: var(--primary-color-hover);
}

.register-link,
.contact-support {
    text-align: center;
    margin-top: 15px;
    color: rgba(0, 0, 0, 0.7);
}

.register-link a,
.contact-support a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Estilo para o container do logo */
.login-logo {
    text-align: center;
    margin-bottom: 15px; /* Reduzido de 20px */
}

.login-logo img {
    max-width: 100px;
    height: auto;
    padding: 15px;
    background: rgba(220, 220, 220, 0.9);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.login-logo img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Media queries para responsividade */
@media screen and (max-width: 992px) {
    .page-content {
        justify-content: center;
    }
    
    .login-container {
        margin-left: 0;
    }
}

@media screen and (max-width: 768px) {
    .page-content {
        padding: 0 3%;
    }
    
    .login-container {
        transform: scale(0.8);
        margin: 0 auto 25px;
    }

    .login-box {
        padding: 20px 25px 30px;
    }

    .tab-btn {
        padding: 12px 15px;
        font-size: 15px;
    }
}

/* Ajustes específicos para telas muito pequenas */
@media screen and (max-width: 480px) {
    .login-container {
        transform: none;
        margin-bottom: 20px;
    }

    .login-box {
        padding: 15px 20px 25px;
    }
}

/* Estilo específico para o navbar da página de login */
body.login-page .navbar {
    background: transparent !important;
    box-shadow: none !important;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
   
    margin-bottom: 30px;
}

body.login-page .navbar .navbar-brand {
    color: #ed741a;
    font-weight: 600;
}

body.login-page .navbar .navbar-brand:hover {
    color: var(--primary-color) !important;
}

/* Ajustes específicos para telas grandes */
@media screen and (min-width: 1400px) {
    .login-box {
        max-width: 650px;
        padding: 40px 50px 50px;
    }

    .login-form h2 {
        font-size: 26px;
    }

    .login-form p {
        font-size: 16px;
    }

    .input-group {
        padding: 12px 18px;
    }

    .input-group input {
        font-size: 16px;
    }

    .login-btn {
        padding: 18px;
        font-size: 17px;
    }

    .tab-btn {
        padding: 18px 25px;
        font-size: 17px;
    }

    .tab-btn i {
        font-size: 22px;
    }
}

/* Estrela cadente */
.shooting-star {
    position: absolute;
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95), transparent);
    animation: shooting 3s linear forwards;
    opacity: 1;
    transform: rotate(-30deg);
    z-index: 1;
}

/* Animação da estrela cadente */
@keyframes shooting {
    0% {
        right: -100px;
        top: 0;
    }
    
    100% {
        right: 100%;
        top: 100%;
    }
}