/* css/login.css */

.login-page-background {
    background: linear-gradient(135deg, #0d47a1, #2e7d32);
    display: flex;
    justify-content: center;
    align-items: baseline;
    min-height: 100vh;
    font-family: 'Source Sans Pro', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

.login-logo {
    margin: 0 !important;
}

.forms-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding: 20px;
}

.forms-box {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    max-width: 620px;
    text-align: center;
    overflow: hidden;
    gap: 10px;
    display: flex;
    flex-direction: column;
}

.form-slider-radio {
    display: none;
}

.slider-tabs {
    height: 50px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.slider-tabs .tab {
    height: 100%;
    width: 50%;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    line-height: 50px;
    color: #000;
    transition: color 0.3s ease;
    z-index: 1;
}

.slider-tabs .slider {
    position: absolute;
    height: 100%;
    width: 50%;
    background: linear-gradient(135deg, #0d47a1, #2e7d32);
    border-radius: 8px;
    left: 0;
    transition: left 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 0;
}

#register-tab:checked~.slider-tabs .slider {
    left: 50%;
}

#login-tab:checked~.slider-tabs .login-tab-label,
#register-tab:checked~.slider-tabs .register-tab-label {
    color: #fff;
}

/* --- LÓGICA DE EXIBIÇÃO DOS FORMULÁRIOS (MOSTRAR/ESCONDER) --- */

/* Regra Padrão: O formulário de login é visível, o de registro não. */
#login-tab:checked~.forms-inner #login-form {
    display: block;
}

#login-tab:checked~.forms-inner #register-form {
    display: none;
}

/* Regra de Troca: Quando o botão de registro está checado, inverte a visibilidade. */
#register-tab:checked~.forms-inner #login-form {
    display: none;
}

#register-tab:checked~.forms-inner #register-form {
    display: block;
}


/* Estilos comuns aos formulários */
.login-logo img {
    max-width: 80px;
}

.login-title {
    color: #0d47a1;
    font-weight: bold;
    font-size: 24px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
    width: 100%;
}

.form-row {
    display: flex;
    gap: 10px;
    flex-direction: row;
    width: 100%;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 600;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
    width: 100%;
    box-sizing: border-box;
}

.btn-submit {
    background-color: #2e7d32;
    border: none;
    border-radius: 8px;
    color: white;
    padding: 12px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #1b5e20;
}

@media (max-width: 480px) {
    .forms-box {
        padding: 20px;
    }

    .slider-tabs .tab {
        font-size: 16px;
    }
}