*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: url('/images/login-bg.jpg') fixed center center no-repeat;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    padding: 2.5rem 2rem;
}

.login-logo {
    text-align: center;
    margin-bottom: 1.5rem;
    width: 100%;
}

.login-logo-img {
    width: 100%;
    height: auto;
    display: block;
}

.login-box {
    width: 100%;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
}

.form-input {
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: #00695c;
    box-shadow: 0 0 0 2px rgba(0, 105, 92, 0.15);
}

.btn-login {
    padding: 0.75rem;
    background: #00695c;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 0.5rem;
}

.btn-login:hover {
    background: #004d40;
}

.login-erro {
    background: #fdecea;
    color: #b71c1c;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Unit selection */
.unidade-selecao h3 {
    text-align: center;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.unidade-lista {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.unidade-form {
    display: block;
}

.unidade-card {
    width: 100%;
    padding: 1rem;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    text-align: left;
    font-family: inherit;
}

.unidade-card:hover {
    background: #e0f2f1;
    border-color: #00695c;
}

.unidade-nome {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.unidade-detalhe {
    font-size: 0.8rem;
    color: #666;
}

.unidade-voltar {
    text-align: center;
    margin-top: 1.25rem;
}

.unidade-voltar a {
    color: #00695c;
    text-decoration: none;
    font-size: 0.875rem;
}

.unidade-voltar a:hover {
    text-decoration: underline;
}
