/* Reset e estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0c0c1d 0%, #1a1a3e 100%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Container de partículas */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Container principal de login */
.login-container {
    width: 100%;
    max-width: 450px;
    padding: 40px 30px;
    z-index: 10;
    position: relative;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Logo e cabeçalho */
.logo-header {
    text-align: center;
    margin-bottom: 40px;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animated-logo {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.animated-logo i {
    font-size: 50px;
    color: #4d7cfe;
    z-index: 2;
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.signal-dot {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(77, 124, 254, 0.3);
    border-radius: 50%;
    z-index: 1;
}

.dot-1 {
    animation: ripple 3s infinite linear;
}

.dot-2 {
    animation: ripple 3s infinite linear 1s;
}

.dot-3 {
    animation: ripple 3s infinite linear 2s;
}

@keyframes ripple {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.logo-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.rd-text {
    color: #4d7cfe;
    text-shadow: 0 0 15px rgba(77, 124, 254, 0.5);
    animation: glow 2s infinite alternate;
}

.security-text {
    color: #fff;
    position: relative;
}

.security-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4d7cfe, #00d4ff);
    border-radius: 3px;
}

@keyframes glow {
    0% { text-shadow: 0 0 10px rgba(77, 124, 254, 0.5); }
    100% { text-shadow: 0 0 20px rgba(77, 124, 254, 0.8), 0 0 30px rgba(77, 124, 254, 0.4); }
}

.tagline {
    font-size: 1rem;
    opacity: 0.8;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Container do formulário */
.login-form-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    animation: formAppear 0.8s ease-out 0.3s both;
}

@keyframes formAppear {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-header p {
    opacity: 0.7;
    font-size: 0.95rem;
}

/* Estilos dos inputs */
.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #4d7cfe;
    font-size: 18px;
    z-index: 2;
    transition: all 0.3s;
}

.input-group input {
    width: 100%;
    padding: 18px 20px 18px 50px;
    background: rgba(255, 255, 255, 0.07);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.input-group input:focus {
    outline: none;
    border-color: #4d7cfe;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(77, 124, 254, 0.2);
}

.input-group input:focus + .input-highlight {
    width: 100%;
}

.input-group input:focus ~ .input-icon {
    color: #00d4ff;
    transform: translateY(-50%) scale(1.1);
}

.input-highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, #4d7cfe, #00d4ff);
    border-radius: 2px;
    transition: width 0.4s;
    z-index: 2;
}

.toggle-password {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    transition: color 0.3s;
    z-index: 2;
}

.toggle-password:hover {
    color: #4d7cfe;
}

/* reCAPTCHA */
.captcha-container {
    margin: 25px 0;
    text-align: center;
}

.g-recaptcha {
    display: inline-block;
}

.captcha-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.captcha-info i {
    color: #4d7cfe;
}

/* Opções do formulário */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 25px 0 30px;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
    color: rgba(255, 255, 255, 0.8);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: #4d7cfe;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #4d7cfe;
    border-color: #4d7cfe;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-password {
    color: #4d7cfe;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.forgot-password:hover {
    color: #00d4ff;
    text-decoration: underline;
}

/* Botão de submit */
.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(90deg, #4d7cfe, #00d4ff);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(77, 124, 254, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(77, 124, 254, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-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.7s;
}

.submit-btn:hover::before {
    left: 100%;
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #4d7cfe, #00d4ff);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    border-radius: 12px;
}

.btn-loader.active {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 25px;
    height: 25px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mensagem de status */
.status-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
}

.status-message.show {
    opacity: 1;
    transform: translateY(0);
}

.status-message.success {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

.status-message.error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

/* Links adicionais */
.additional-links {
    margin-top: 30px;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.6;
}

.additional-links a {
    color: #4d7cfe;
    text-decoration: none;
    transition: color 0.3s;
}

.additional-links a:hover {
    color: #00d4ff;
    text-decoration: underline;
}

/* Acesso rápido */
.quick-access {
    margin-top: 30px;
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-access p {
    margin-bottom: 15px;
    opacity: 0.8;
    font-size: 0.9rem;
}

.access-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(77, 124, 254, 0.5);
    transform: translateY(-3px);
}

.badge i {
    color: #4d7cfe;
    font-size: 18px;
}

.badge span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Footer do login */
.login-footer {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
    line-height: 1.6;
    margin-top: 20px;
}

.login-footer i {
    color: #4d7cfe;
    margin-right: 8px;
}

/* Responsividade */
@media (max-width: 576px) {
    .login-container {
        padding: 30px 20px;
    }
    
    .login-form-container {
        padding: 30px 25px;
    }
    
    .logo-title {
        font-size: 2.5rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .access-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .badge {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

/* Animações para entrada de inputs */
@keyframes inputSlide {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.input-group:nth-child(1) {
    animation: inputSlide 0.5s ease-out 0.4s both;
}

.input-group:nth-child(2) {
    animation: inputSlide 0.5s ease-out 0.5s both;
}