﻿* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    margin: 0;
    background: #f4f6f8;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.login-header {
    text-align: center;
    margin-bottom: 20px;
}

    .login-header h1 {
        margin: 0;
        font-size: 26px;
        color: #333;
    }

    .login-header p {
        margin-top: 6px;
        font-size: 14px;
        color: #666;
    }

/* Seletor */
.environment-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

    .environment-selector input {
        display: none;
    }

    .environment-selector label {
        padding: 12px;
        text-align: center;
        border-radius: 12px;
        background: #f0f2f5;
        cursor: pointer;
        font-size: 14px;
        transition: 0.2s;
    }

    .environment-selector input:checked + label {
        background: #4f46e5;
        color: #ffffff;
    }

/* Forms */
.forms {
    position: relative;
}

.login-form {
    display: block;
}

    .login-form h2 {
        margin-bottom: 15px;
        font-size: 18px;
        color: #333;
    }

    .login-form input {
        width: 100%;
        padding: 12px;
        margin-bottom: 12px;
        border-radius: 10px;
        border: 1px solid #ccc;
        font-size: 14px;
    }

    .login-form input[type=button], button {
        width: 100%;
        padding: 12px;
        border: none;
        border-radius: 12px;
        background: #4f46e5;
        color: #ffffff;
        font-size: 15px;
        cursor: pointer;
    }

/*Alerta*/

.login-alert {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 16px;
    text-align: center;
}

    /* Erro */
    .login-alert.error {
        background-color: #fee2e2;
        color: #991b1b;
        border: 1px solid #fca5a5;
    }

    /* Sucesso (opcional) */
    .login-alert.success {
        background-color: #dcfce7;
        color: #166534;
        border: 1px solid #86efac;
    }

    /* Oculto por padrão */
    .login-alert.hidden {
        display: none;
    }
