/* Basic Reset & Body Styling (Optional, but good practice) */
body {
    margin: 0;
    font-family: Arial, sans-serif; /* Or your preferred font */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #333; /* A dark background similar to the image's overall tone */
}

/* Main Container for the Login Form (the window-like element) */
.login-container {
    background-color: #2c2c2c; /* Dark charcoal */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Subtle shadow for depth */
    width: 400px; /* Adjust as needed */
    padding: 30px;
    box-sizing: border-box;
    overflow: hidden; /* To contain the background image if used */
    position: relative; /* For positioning pseudo-elements or background */
}

/* Background image inside the container (optional, if you want a similar background) */
.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Substitua pelo caminho da sua imagem de fundo */
    background-image: url('https://via.placeholder.com/400x300/1a1a1a/ffffff?text=Background');
    background-size: cover;
    background-position: center;
    filter: brightness(0.4); /* Darken the image to match the example */
    z-index: 0;
}

.login-container > * {
    position: relative; /* Ensure content is above the background image pseudo-element */
    z-index: 1;
}


/* Window Controls (the red, yellow, green circles) */
.window-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 20px; /* Space below controls */
}

.control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    /* These colors are placeholders, adjust to match the exact shade */
    background-color: #ff5f56; /* Red */
}
.control-btn.yellow {
    background-color: #ffbd2e;
}
.control-btn.green {
    background-color: #27c93f;
}

/* Base para os formulários */
.auth-form {
    display: none; /* Oculta todos os formulários por padrão */
}

.auth-form.active {
    display: block; /* Mostra apenas o formulário com a classe 'active' */
}

.auth-heading {
    text-align: center;
    color: #fff;
    font-size: 2em; /* Ajuste o tamanho conforme o design */
    margin-bottom: 40px;
    font-weight: bold;
}

/* Input Fields */
.input-group {
    margin-bottom: 25px;
    position: relative;
}

.input-field {
    width: calc(100% - 40px); /* Account for padding and icon */
    padding: 15px 20px;
    padding-right: 40px; /* Space for icon */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle light border */
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05); /* Very slight transparency */
    color: #fff;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s ease;
}

.input-field:focus {
    border-color: rgba(255, 255, 255, 0.5); /* Lighter border on focus */
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.6); /* Lighter placeholder text */
}

/* Input Icons */
.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6); /* Icon color */
    font-size: 1.2em; /* Adjust icon size */
    /* You'd use an icon library like Font Awesome here, e.g., <i class="fas fa-user"></i> */
}

/* Remember Me & Forgot Password */
.options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
    /* Custom checkbox styling if desired */
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 3px;
    background-color: transparent;
    cursor: pointer;
    position: relative;
}

.remember-me input[type="checkbox"]:checked {
    background-color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.8);
}

.remember-me input[type="checkbox"]:checked::before {
    content: '\2713'; /* Checkmark character */
    color: #2c2c2c; /* Dark color for checkmark */
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.forgot-password a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #fff;
}

/* Botão genérico para login, registro e reset */
.auth-button {
    width: 100%;
    padding: 15px;
    background-color: #e0e0e0; /* Light gray */
    color: #333;
    border: none;
    border-radius: 30px; /* Highly rounded corners */
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Subtle shadow for the button */
}

.auth-button:hover {
    background-color: #ffffff; /* Lighter on hover */
    transform: translateY(-2px); /* Slight lift */
}

/* Texto de troca de formulário (login/registro/reset) */
.switch-form-text {
    text-align: center;
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
}

.switch-form-text a {
    color: #ffffff; /* White for the link */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.switch-form-text a:hover {
    color: #e0e0e0;
}

/* Container para mensagens de feedback */
#form-message-container {
    text-align: center;
    margin-top: -15px; /* Ajusta a margem para cima para ficar mais próximo */
    margin-bottom: 25px; /* Espaço entre a mensagem e o botão */
}

.form-message {
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: inline-block; /* Para que a box-shadow funcione melhor e ocupe o espaço necessário */
    max-width: 90%; /* Evitar que ocupe 100% da largura, se for muito longa */
}

.form-message.error {
    background-color: #e74c3c;
    border: 1px solid #c0392b;
}

.form-message.success {
    background-color: #2ecc71;
    border: 1px solid #27ae60;
}

.form-message.info {
    background-color: #3498db;
    border: 1px solid #2980b9;
}