/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --azul-otimiza: #007ACC;
    --azul-escuro: #000000;
    --laranja-otimiza: #1F9CF0;
    --laranja-hover: #007ACC;
    --verde-limao: #1F9CF0;
    --verde-limao-hover: #007ACC;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--azul-escuro);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Container Principal - Login */
.login-container {
    width: 100%;
    max-width: 700px;
    text-align: center;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo */
.logo-container {
    text-align: center;
    margin-bottom: 32px;
    margin-top: -40px;
}

.logo-img {
    max-width: 230px;
    height: auto;
}

/* Titulo de Boas Vindas */
.welcome-title {
    color: #ffffff;
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 40px;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Formulario Inline */
.login-form-inline {
    width: 100%;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Wrapper dos inputs com efeito holofote */
.input-wrapper {
    flex: 1;
    position: relative;
    border-radius: 50px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: #1F9CF0;
    box-shadow: 0 0 20px rgba(31, 156, 240, 0.5), 0 0 40px rgba(31, 156, 240, 0.3);
}

.form-row input {
    width: 100%;
    border: none;
    padding: 18px 24px;
    font-size: 16px;
    outline: none;
    background: transparent;
    color: #ffffff;
    border-radius: 50px;
}

.form-row input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Botao Entrar */
.btn-entrar {
    background: var(--verde-limao);
    border: none;
    padding: 18px 32px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 50px;
    margin: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.btn-entrar:hover {
    background: var(--verde-limao-hover);
    transform: scale(1.02);
}

.btn-entrar:active {
    transform: scale(0.98);
}

/* Loader do Botao */
.btn-loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none !important;
}

/* Mensagem de Erro */
.error-message {
    color: #ff6b6b;
    font-size: 14px;
    margin-top: 24px;
    padding: 12px 20px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 8px;
    animation: fadeIn 0.3s ease-out;
}

/* Mensagem de Sucesso */
.success-message {
    color: #10b981;
    font-size: 14px;
    margin-top: 24px;
    padding: 12px 20px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    animation: fadeIn 0.3s ease-out;
}

/* Links do Login */
.login-links {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.login-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-links a:hover {
    color: #ffffff;
}

.link-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
}

/* Responsividade */
@media (max-width: 600px) {
    .welcome-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .form-row {
        flex-direction: column;
        gap: 12px;
    }

    .input-wrapper {
        width: 100%;
    }

    .form-row input {
        width: 100%;
        padding: 16px 20px;
        text-align: center;
    }

    .btn-entrar {
        width: 100%;
        margin: 0;
        border-radius: 50px;
    }
}

@media (max-width: 400px) {
    .welcome-title {
        font-size: 24px;
    }

    .form-row input {
        font-size: 14px;
        padding: 14px 16px;
    }

    .btn-entrar {
        font-size: 14px;
        padding: 14px 24px;
    }
}
