@import './global.css';

/* ---------- Estrutura Geral ---------- */
.logoStart {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.logoStart img {
    width: 180px;
    height: auto;
    user-select: none;
    max-width: 100%;
}

.auth-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    z-index: 2;
    padding: 20px;
    width: 100%;
    max-width: 420px; /* Centraliza e limita largura em telas grandes */
    margin: 0 auto;
}

/* ---------- Títulos ---------- */
.login-title {
    margin: 10px;
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.2;
    font-size: 1.5rem;
}

/* ---------- Formulário ---------- */
.login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.login form label {
    font-weight: 600;
    color: var(--primary);
    text-align: left;
    font-size: 1rem;
    width: 100%;
    margin-bottom: 5px;
}

.login form input,
.login form select {
    padding: 0.6rem;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    width: 100%; /* ocupa toda largura disponível */
    max-width: 350px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login form input:focus,
.login form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.login form button {
    padding: 0.8rem;
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    max-width: 350px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.login form button:hover,
.login form button:focus {
    background-color: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
    outline: none;
}

.login form a {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--primary);
    text-align: center;
    display: block;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login form a:hover,
.login form a:focus {
    color: var(--secondary);
    text-decoration: underline;
    outline: none;
}

/* ---------- Responsividade ---------- */

/* Telas pequenas (smartphones) */
@media (max-width: 480px) {
    .logoStart img {
        width: 140px;
    }

    .login-title {
        font-size: 1.3rem;
    }

    .login form input,
    .login form select,
    .login form button {
        font-size: 1rem;
    }
}

/* Tablets e telas médias */
@media (min-width: 768px) {
    .auth-container {
        max-width: 500px;
    }

    .login-title {
        font-size: 1.8rem;
    }
}

/* Telas largas (desktop/monitores grandes) */
@media (min-width: 1200px) {
    .auth-container {
        max-width: 600px;
        padding: 40px;
    }

    .login-title {
        font-size: 2rem;
    }

    .login form input,
    .login form select,
    .login form button {
        font-size: 1.2rem;
        padding: 1rem;
    }
}
