/* =========================================
   7. Authentication Card (Login/Register)
   ========================================= */
.bare-auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 20px;
}

.bare-auth-card {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    padding: 40px;
    border-radius: var(--me-radius);
    position: relative;
    overflow: hidden;
}

/* Header */
.bare-auth-header {
    text-align: center;
    margin-bottom: 20px;
}

.bare-logo-icon {
    width: 48px;
    height: 48px;
    background: var(--me-primary);
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 12px;
}

.bare-auth-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--me-text);
    margin: 0;
}

/* Welcome Text */
.bare-auth-welcome {
    text-align: center;
    margin-bottom: 30px;
}

.bare-auth-welcome strong {
    display: block;
    font-size: 1.5rem;
    color: #111;
    margin-bottom: 5px;
}

.bare-auth-welcome span {
    color: var(--me-text-muted);
    font-size: 0.95rem;
}

/* Tabs */
.bare-auth-tabs {
    display: flex;
    background: #f1f3f5;
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.bare-tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--me-text-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.bare-tab-btn.active {
    background: #ffffff;
    color: var(--me-primary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Tab Content */
.bare-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.bare-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Forms */
.bare-form-group {
    margin-bottom: 20px;
}

.bare-form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #343a40;
}

.bare-form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    transition: 0.2s;
    background: #fff;
}

.bare-form-group input:focus {
    border-color: var(--me-primary);
    box-shadow: 0 0 0 3px rgba(223, 91, 15, 0.1);
    /* Primary color low opacity */
    outline: none;
}

/* Password Toggle */
.bare-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.bare-toggle-pass {
    position: absolute;
    right: 12px;
    cursor: pointer;
    color: #adb5bd;
    font-size: 20px;
    user-select: none;
}

.bare-toggle-pass:hover {
    color: var(--me-text);
}

/* Actions Row (Remember + Forgot) */
.bare-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.bare-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
    color: var(--me-text-muted);
}

.bare-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--me-primary);
    cursor: pointer;
}

.bare-forgot-link {
    color: var(--me-primary);
    text-decoration: none;
    font-weight: 500;
}

.bare-forgot-link:hover {
    text-decoration: underline;
}

/* Primary Button */
.bare-btn-primary {
    background: #0d6efd;
    /* Blue as requested or Primary? User asked for Blue Card in desc: "Botão Grande Azul" */
    /* Let's use a nice blue like standard bootstrap or tailored */
    background: var(--me-primary);
    /* Tailwind Blue 600 */
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
    display: block;
    text-align: center;
    text-decoration: none;
}

.bare-btn-primary:hover {
    background: var(--me-primary);
    transform: translateY(-1px);
}

.bare-btn-primary.disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* Divider */
.bare-auth-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.bare-auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
    z-index: 1;
}

.bare-auth-divider span {
    background: #fff;
    position: relative;
    z-index: 2;
    padding: 0 15px;
    color: var(--me-text-muted);
    font-size: 0.85rem;
}

/* Social Buttons */
.bare-social-buttons {
    display: flex;
    gap: 15px;
}

.bare-social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 6px;
    border: 1px solid #dee2e6;
    background: #fff;
    border-radius: 8px;
    font-weight: 500;
    color: var(--me-text);
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.95rem;
}

.bare-social-btn:not(.is-disabled):hover {
    background: #f8f9fa;
    border-color: #ced4da;
}

.bare-social-btn img {
    width: 20px;
    height: 20px;
}

.bare-social-btn.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f1f3f5;
}

/* Alerts */
.bare-auth-alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.bare-auth-alert.error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.bare-auth-alert p {
    margin: 0;
}