/* ===========================================
   AUTENTICAÇÃO - Login e Registro
   =========================================== */

.auth-page {
    min-height: 100vh;
    background: var(--bg-section);
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.auth-container.auth-single {
    grid-template-columns: 1fr;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Left Panel */
.auth-left {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.auth-branding {
    text-align: center;
    margin-bottom: 60px;
}

.auth-logo img {
    height: 120px;
    width: auto;
    margin-bottom: 20px;
}

.auth-branding h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: 36px;
    letter-spacing: 4px;
    color: #fff;
    margin-bottom: 8px;
}

.auth-branding p {
    font-size: 14px;
    letter-spacing: 2px;
    opacity: 0.8;
    text-transform: uppercase;
}

.auth-features {
    max-width: 400px;
    margin: 0 auto;
}

.auth-features .feature {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-features .feature:last-child {
    border-bottom: none;
}

.auth-features .feature i {
    font-size: 24px;
    color: var(--accent);
    width: 40px;
    text-align: center;
}

.auth-features .feature span {
    font-size: 15px;
    opacity: 0.9;
}

/* Right Panel */
.auth-right {
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.auth-form-container {
    width: 100%;
    max-width: 440px;
}

.register-form-container {
    max-width: 520px;
}

.auth-brand {
    text-align: center;
    margin-bottom: 32px;
}

.auth-brand img {
    height: 80px;
}

.auth-header {
    margin-bottom: 32px;
    text-align: center;
}

.auth-header h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Form Styles */
.auth-form {
    margin-bottom: 24px;
}

.form-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 8px;
}

.form-group label i {
    color: var(--primary);
    font-size: 14px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
}

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

.form-input::placeholder {
    color: #aaa;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-error {
    display: block;
    color: var(--accent);
    font-size: 13px;
    margin-top: 6px;
}

.form-hint {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 6px;
}

/* Password Input */
.password-input {
    position: relative;
}

.password-input .form-input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
}

.password-toggle:hover {
    color: var(--primary);
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 16px;
}

.radio-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: var(--primary);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option input[type="radio"]:checked + .radio-custom + .radio-label {
    color: var(--primary);
}

.radio-option input[type="radio"]:checked ~ .radio-custom::after {
    transform: scale(1);
}

.radio-option:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
}

.radio-custom::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease;
}

.radio-option:has(input:checked) .radio-custom {
    border-color: var(--primary);
}

.radio-option:has(input:checked) .radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.radio-label i {
    font-size: 18px;
}

/* Checkbox */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary);
}

.form-check label {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.5;
}

.form-check label a {
    color: var(--primary);
    text-decoration: none;
}

.form-check label a:hover {
    text-decoration: underline;
}

.terms-check {
    margin-top: 4px;
}

/* Form Row */
.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.forgot-password {
    color: var(--primary);
    font-size: 14px;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 42, 104, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.auth-footer p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 12px;
}

.auth-links {
    margin-top: 24px;
    text-align: center;
}

.auth-links a {
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-links a:hover {
    color: var(--primary);
}

/* Alerts */
.auth-messages,
.auth-errors {
    margin-bottom: 24px;
}

.alert {
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.alert-error {
    background: #fee;
    color: var(--accent);
    border: 1px solid rgba(218, 31, 48, 0.2);
}

.alert-success {
    background: #efe;
    color: #2a7d2a;
    border: 1px solid rgba(42, 125, 42, 0.2);
}

.alert-info {
    background: #eef;
    color: var(--primary);
    border: 1px solid rgba(42, 42, 104, 0.2);
}

/* Responsive */
@media (max-width: 992px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-left {
        display: none;
    }
    
    .auth-right {
        padding: 40px 24px;
    }
    
    .register-page .auth-left {
        display: none;
    }
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .radio-group {
        flex-direction: column;
    }
}
