:root {
    --primary-color: #8b4513;
    --secondary-color: #deb887;
    --bg-color: #fdf5e6;
    --text-color: #5a4632;
    --border-color: #ddd;
    --radius-sm: 8px;
    --radius-md: 12px;
    --shadow-lg: 0 8px 24px rgba(139, 69, 19, 0.15);
}

.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #fff8dc 0%, var(--bg-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 0 1rem;
    margin: 0 auto;
}

.auth-container.wide {
    max-width: 720px;
}

.auth-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    display: block;
}

.auth-header h1 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #666;
    font-size: 1rem;
}

.auth-form {
    margin: 0 auto;
    width: 100%;
    max-width: 360px; /* Largura máxima do formulário baseada no botão */
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 640px; /* Ajuste para o formulário de cadastro */
    margin: 0 auto;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group input,
.input-group select,
.form-select {
    width: 100%;
    height: 48px;
    padding: 0 1rem 0 3rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    box-sizing: border-box;
}

.input-group input:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
    outline: none;
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.2rem;
}

.form-label {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
}

.btn-submit {
    width: 100%;
    max-width: 360px; /* Mesma largura máxima dos inputs */
    height: 48px;
    margin: 1.5rem auto 0;
    display: block;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #a0522d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
}

.radio-group {
    display: flex;
    gap: 3rem;
    padding: 1rem 0;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-color);
}

.radio-label input[type="radio"] {
    accent-color: var(--primary-color);
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #a0522d;
    transform: translateY(-2px);
}

.auth-separator {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.auth-separator::before,
.auth-separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: var(--border-color);
}

.auth-separator::before { left: 0; }
.auth-separator::after { right: 0; }

.auth-separator span {
    background: white;
    padding: 0 1rem;
    color: #666;
    font-size: 0.9rem;
}

.auth-options {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-options p {
    margin-bottom: 1rem;
    color: #666;
}

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--bg-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: white;
}

.auth-footer {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: #a0522d;
}

.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert i {
    font-size: 1.2rem;
}
